Skip to content

Commit

Permalink
Merge pull request #9 from jyoung8607/patch-1
Browse files Browse the repository at this point in the history
fix CRC prepend data type
  • Loading branch information
lukasloetkolben authored Jun 16, 2024
2 parents 0bff7fe + 77139c8 commit 11bf34a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion selfdrive/car/rivian/riviancan.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
def checksum(data, prefix, poly):
crc = 0
data = [prefix] + data
data = bytes(prefix) + data
for byte in data:
crc ^= byte
for _ in range(8):
Expand Down

0 comments on commit 11bf34a

Please sign in to comment.