From 6305e8e1addb9ef20d6486cfed06c8186f5732e3 Mon Sep 17 00:00:00 2001 From: dzid26 Date: Sun, 4 Aug 2024 23:34:53 +0100 Subject: [PATCH] enable printing CAN3 --- tests/can_printer.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tests/can_printer.py b/tests/can_printer.py index 08315560ed..70a18a61bd 100755 --- a/tests/can_printer.py +++ b/tests/can_printer.py @@ -17,7 +17,12 @@ def can_printer(): start = sec_since_boot() lp = sec_since_boot() msgs = defaultdict(list) + canbus = int(os.getenv("CAN", "0")) + if canbus == 3: + canbus = 1 + p.set_obd(True) + while True: can_recv = p.can_recv() for address, dat, src in can_recv: