From 09fee3e7ead96a6a9613430c81bb2d3e095aa0fe Mon Sep 17 00:00:00 2001 From: Shane Smiskol Date: Fri, 31 Mar 2023 12:11:13 -0700 Subject: [PATCH] Revert "IsoTpMessage: check CAN frame length (#1312)" This reverts commit 9349337ebb7cad601ef881265af1d27a2115d1b9. --- python/uds.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/python/uds.py b/python/uds.py index 83d7a54a..5e2f50d9 100644 --- a/python/uds.py +++ b/python/uds.py @@ -457,9 +457,6 @@ class IsoTpMessage(): print(f"ISO-TP: RESPONSE - {hex(self._can_client.rx_addr)} 0x{bytes.hex(self.rx_dat)}") def _isotp_rx_next(self, rx_data: bytes) -> None: - # ISO 15765-2 specifies an eight byte CAN frame for ISO-TP communication - assert len(rx_data) == 8, f"isotp - rx: invalid CAN frame length: {len(rx_data)}" - # single rx_frame if rx_data[0] >> 4 == 0x0: self.rx_len = rx_data[0] & 0xFF