Skip to content

Commit

Permalink
Revert "IsoTpMessage: check CAN frame length (#1312)"
Browse files Browse the repository at this point in the history
This reverts commit 9349337.
  • Loading branch information
sshane committed Mar 31, 2023
1 parent 7933635 commit 09fee3e
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions python/uds.py
Original file line number Diff line number Diff line change
Expand Up @@ -457,9 +457,6 @@ def recv(self, timeout=None) -> Tuple[Optional[bytes], bool]:
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
Expand Down

0 comments on commit 09fee3e

Please sign in to comment.