Skip to content

Commit

Permalink
panda recover should go through bootstub first (#498)
Browse files Browse the repository at this point in the history
  • Loading branch information
pd0wm authored Apr 13, 2020
1 parent 8cc3a35 commit f07a6ee
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion python/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -297,6 +297,7 @@ def flash(self, fn=None, code=None, reconnect=True):
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:
Expand Down Expand Up @@ -477,7 +478,7 @@ def set_uart_callback(self, uart, install):

# ******************* 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
Expand Down

0 comments on commit f07a6ee

Please sign in to comment.