Skip to content

Commit 1ccdb5d

Browse files
coccyx00ebroecker
authored andcommitted
fix: xls is using the wrong number for arbitration id (#377)
1 parent 6f76a6f commit 1ccdb5d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/canmatrix/formats/xls.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -421,7 +421,7 @@ def load(file, **options):
421421
if frame_id.endswith("xh"):
422422
new_frame.arbitration_id = canmatrix.ArbitrationId(int(frame_id[:-2], 16), extended=True)
423423
else:
424-
new_frame.arbitration_id = canmatrix.ArbitrationId(int(frame_id[:-2], 16), extended=False)
424+
new_frame.arbitration_id = canmatrix.ArbitrationId(int(frame_id[:-1], 16), extended=False)
425425
db.add_frame(new_frame)
426426

427427
# eval launch_type

0 commit comments

Comments
 (0)