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 3, 2024
1 parent c84facb commit 5854b72
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tests/can_printer.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,13 @@ 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)
p.can_reset_communications()

while True:
can_recv = p.can_recv()
for address, dat, src in can_recv:
Expand Down

0 comments on commit 5854b72

Please sign in to comment.