panda recover should go through bootstub first (#498)

master
Willem Melching 2020-04-13 15:12:06 -07:00 committed by GitHub
parent 8cc3a35700
commit f07a6ee7c5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -297,6 +297,7 @@ class Panda(object):
self.reconnect()
def recover(self, timeout=None):
self.reset(enter_bootstub=True)
self.reset(enter_bootloader=True)
t_start = time.time()
while len(PandaDFU.list()) == 0:
@ -477,7 +478,7 @@ class Panda(object):
# ******************* can *******************
# The panda will NAK CAN writes when there is CAN congestion.
# The panda will NAK CAN writes when there is CAN congestion.
# libusb will try to send it again, with a max timeout.
# Timeout is in ms. If set to 0, the timeout is infinite.
CAN_SEND_TIMEOUT_MS = 10