Skip to content

Commit

Permalink
enable printing CAN3
Browse files Browse the repository at this point in the history
  • Loading branch information
dzid26 committed Aug 4, 2024
1 parent c84facb commit 6305e8e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tests/can_printer.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 6305e8e

Please sign in to comment.