Skip to content

Commit

Permalink
Always wait 5 seconds for reset to firmware mode when triggered from …
Browse files Browse the repository at this point in the history
…bootloader mode.
  • Loading branch information
gemenerik committed Feb 18, 2025
1 parent 354a3fc commit b7ead19
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions cflib/bootloader/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -276,14 +276,9 @@ def flash(self, filename: str, targets: List[Target], cf=None, enable_console_lo
self.progress_cb('Restarting firmware to update decks.', int(0))

# Reset to firmware mode
if any(deck.target == 'bcAI:gap8' for deck in deck_targets):
self.reset_to_firmware(boot_delay=6.0)
self.close()
time.sleep(7)
else:
self.reset_to_firmware()
self.close()
time.sleep(2)
self.reset_to_firmware(boot_delay=5.0)
self.close()
time.sleep(2)

# Flash all decks and reboot after each deck
current_index = 0
Expand Down

0 comments on commit b7ead19

Please sign in to comment.