Skip to content
This repository was archived by the owner on Jan 20, 2022. It is now read-only.
Open
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
2 changes: 1 addition & 1 deletion python2x/crc16/crc16pure.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ def _crc16(data, crc, table):
return crc & 0xffff


def crc16xmodem(data, crc=0):
def crc16xmodem(data, crc=0xffff):
"""Calculate CRC-CCITT (XModem) variant of CRC16.
`data` - data for calculating CRC, must be a string
`crc` - initial value
Expand Down