Skip to content

Commit

Permalink
PandaDFU: don't reset in program_bootstub (#1433)
Browse files Browse the repository at this point in the history
  • Loading branch information
adeebshihadeh authored May 22, 2023
1 parent c898ec7 commit 4d7abcc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
3 changes: 1 addition & 2 deletions python/dfu.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,10 +110,9 @@ def program_bootstub(self, code_bootstub):
self._handle.erase_bootstub()
self._handle.erase_app()
self._handle.program(self._mcu_type.config.bootstub_address, code_bootstub)
self.reset()

def recover(self):
with open(self._mcu_type.config.bootstub_path, "rb") as f:
code = f.read()
self.program_bootstub(code)

self.reset()
1 change: 1 addition & 0 deletions tests/hitl/1_program.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ def test_a_known_bootstub(p):
code = f.read()

dfu.program_bootstub(code)
dfu.reset()

p.connect(claim=False, wait=True)

Expand Down

0 comments on commit 4d7abcc

Please sign in to comment.