From 90c2bff10da8ccf1f9ae04435a269f3696b62d6d Mon Sep 17 00:00:00 2001 From: Andreas Lauser Date: Wed, 13 Mar 2024 15:48:09 +0100 Subject: [PATCH] isotp_state_machine: fix unpacking of frame type Signed-off-by: Andreas Lauser Signed-off-by: Christian Hackenbeck --- odxtools/isotp_state_machine.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/odxtools/isotp_state_machine.py b/odxtools/isotp_state_machine.py index f6591651..75e4b4df 100644 --- a/odxtools/isotp_state_machine.py +++ b/odxtools/isotp_state_machine.py @@ -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