Skip to content

Commit

Permalink
fix enter_canloader.py for python 3
Browse files Browse the repository at this point in the history
  • Loading branch information
BogGyver committed Nov 11, 2019
1 parent 45cbcc9 commit 172afd5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions panda/tests/pedal/enter_canloader.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ def _handle_timeout(signum, frame):
finally:
signal.alarm(0)

#print "R:",ret.encode("hex")
# "R:",ret.encode("hex")
return ret

def controlWrite(self, request_type, request, value, index, data, timeout=0):
Expand Down Expand Up @@ -58,7 +58,7 @@ def bulkRead(self, endpoint, length, timeout=0):
while 1:
if len(p.can_recv()) == 0:
break
print "entering bootloader mode"
print("entering bootloader mode")
if args.recover:
p.can_send(0x200, b"\xce\xfa\xad\xde\x1e\x0b\xb0\x02", 0)
p.can_send(0x551, b"\xce\xfa\xad\xde\x1e\x0b\xb0\x02", 0)
Expand Down

0 comments on commit 172afd5

Please sign in to comment.