From 1289c27d80ccd5cf2a46291b28dffb951a21fde3 Mon Sep 17 00:00:00 2001 From: Shane Smiskol Date: Wed, 31 Jul 2024 03:33:45 -0700 Subject: [PATCH 1/2] whoops --- python/uds.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/uds.py b/python/uds.py index 32b0de0961..7b252055f2 100644 --- a/python/uds.py +++ b/python/uds.py @@ -339,7 +339,7 @@ def _recv_buffer(self, drain: bool = False) -> None: print(f"CAN-RX: drain - {len(msgs)}") self.rx_buff.clear() else: - for rx_addr, _, rx_data, rx_bus in msgs or []: + for rx_addr, rx_data, rx_bus in msgs or []: if self._recv_filter(rx_bus, rx_addr) and len(rx_data) > 0: rx_data = bytes(rx_data) # convert bytearray to bytes From f7a1c93203a9166b8020723456d906f20ede4e89 Mon Sep 17 00:00:00 2001 From: Shane Smiskol Date: Wed, 31 Jul 2024 14:30:31 -0700 Subject: [PATCH 2/2] addr dat src --- python/uds.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/uds.py b/python/uds.py index 7b252055f2..b5439446cd 100644 --- a/python/uds.py +++ b/python/uds.py @@ -301,7 +301,7 @@ def get_dtc_status_names(status): return result class CanClient(): - def __init__(self, can_send: Callable[[int, bytes, int], None], can_recv: Callable[[], list[tuple[int, int, bytes, int]]], + def __init__(self, can_send: Callable[[int, bytes, int], None], can_recv: Callable[[], list[tuple[int, bytes, int]]], tx_addr: int, rx_addr: int, bus: int, sub_addr: int | None = None, debug: bool = False): self.tx = can_send self.rx = can_recv