Skip to content

Commit

Permalink
Replace checksum algorithm with fix from mvillalba#25.
Browse files Browse the repository at this point in the history
  • Loading branch information
jeffmelville committed Mar 24, 2015
1 parent 40b559e commit 57ce179
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ant/core/message.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ def getChecksum(self):

checksum = MESSAGE_TX_SYNC
for byte in data:
checksum = (checksum ^ ord(byte)) % 0xFF
checksum = checksum ^ ord(byte)

return checksum

Expand Down

0 comments on commit 57ce179

Please sign in to comment.