From 77139c858c7d862b6f6ce4f0ee8049d2a162916b Mon Sep 17 00:00:00 2001 From: Jason Young <46612682+jyoung8607@users.noreply.github.com> Date: Sun, 16 Jun 2024 13:26:06 -0400 Subject: [PATCH] fix CRC prepend data type --- selfdrive/car/rivian/riviancan.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/selfdrive/car/rivian/riviancan.py b/selfdrive/car/rivian/riviancan.py index 3ecdaa08ca9fd1f..1598f8dfe953bb5 100644 --- a/selfdrive/car/rivian/riviancan.py +++ b/selfdrive/car/rivian/riviancan.py @@ -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):