Skip to content

Commit a1a2d97

Browse files
committed
gmlan test
1 parent 8efa389 commit a1a2d97

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

tests/gmbitbang/test_one.py

+8
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,14 @@
44

55
p = Panda()
66
p.set_safety_mode(Panda.SAFETY_ALLOUTPUT)
7+
8+
# ack any crap on bus
9+
p.set_gmlan(bus=2)
10+
time.sleep(0.1)
11+
while len(p.can_recv()) > 0:
12+
print "clearing"
13+
time.sleep(0.1)
14+
print "cleared"
715
p.set_gmlan(bus=None)
816

917
iden = 18000

0 commit comments

Comments
 (0)