Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
tests:
PYTHONPATH=. python test/test.py test/test.py
PYTHONPATH=. python test/test-recv.py
PYTHONPATH=. python test/test-send.py
# PYTHONPATH=. python test/test-send.py
# PYTHONPATH=. python test/test.py test/test.py

upload:
python setup.py sdist upload
Expand Down
6 changes: 2 additions & 4 deletions modem/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,7 @@ def calc_crc16(self, data, crc=0):
'0xd5e3'

'''
for byte in data:
crc = crc16(byte, crc)
crc = crc16(data, crc)
return crc

def calc_crc32(self, data, crc=0):
Expand All @@ -49,8 +48,7 @@ def calc_crc32(self, data, crc=0):
'0x20ad'

'''
for byte in data:
crc = crc32(byte, crc)
crc = crc32(data, crc)
return crc

def _check_crc(self, data, crc_mode):
Expand Down
1 change: 0 additions & 1 deletion modem/const.py
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,6 @@
CAN = b'\x18'
CRC = b'\x43'

TIMEOUT = None
ZPAD = 0x2a
ZDLE = 0x18
ZDLEE = 0x58
Expand Down
Loading