Skip to content

Commit f07a6ee

Browse files
authored
panda recover should go through bootstub first (#498)
1 parent 8cc3a35 commit f07a6ee

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

python/__init__.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -297,6 +297,7 @@ def flash(self, fn=None, code=None, reconnect=True):
297297
self.reconnect()
298298

299299
def recover(self, timeout=None):
300+
self.reset(enter_bootstub=True)
300301
self.reset(enter_bootloader=True)
301302
t_start = time.time()
302303
while len(PandaDFU.list()) == 0:
@@ -477,7 +478,7 @@ def set_uart_callback(self, uart, install):
477478

478479
# ******************* can *******************
479480

480-
# The panda will NAK CAN writes when there is CAN congestion.
481+
# The panda will NAK CAN writes when there is CAN congestion.
481482
# libusb will try to send it again, with a max timeout.
482483
# Timeout is in ms. If set to 0, the timeout is infinite.
483484
CAN_SEND_TIMEOUT_MS = 10

0 commit comments

Comments
 (0)