Skip to content

Commit 81e6b0d

Browse files
committed
fix bug
1 parent 083cd12 commit 81e6b0d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/isotp.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ def isotp_send(panda, x, addr, bus=0, recvaddr=None, subaddr=None):
5555
# actually send
5656
panda.can_send(addr, ss, bus)
5757
rr = recv(panda, 1, recvaddr, bus)[0]
58-
if rr.find("\x30\x01"):
58+
if rr.find("\x30\x01") != -1:
5959
for s in sends[:-1]:
6060
panda.can_send(addr, s, 0)
6161
rr = recv(panda, 1, recvaddr, bus)[0]

0 commit comments

Comments
 (0)