Skip to content

Commit

Permalink
isotp_state_machine: fix unpacking of frame type
Browse files Browse the repository at this point in the history
Signed-off-by: Andreas Lauser <[email protected]>
Signed-off-by: Christian Hackenbeck <[email protected]>
  • Loading branch information
andlaus committed Mar 13, 2024
1 parent 16e26e2 commit 90c2bff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion odxtools/isotp_state_machine.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ def decode_rx_frame(self, rx_id: int, data: bytes) -> Iterable[Tuple[int, bytes]
return # unknown CAN ID

# decode the isotp segment
frame_type, _ = bitstruct.unpack("u4", data)
frame_type, _ = bitstruct.unpack("u4u4", data)
assert isinstance(frame_type, int)

telegram_len = None
Expand Down

0 comments on commit 90c2bff

Please sign in to comment.