From 4d7abcc2e6152e203cfa7cb3f3c2538fb881ace7 Mon Sep 17 00:00:00 2001 From: Adeeb Shihadeh Date: Sun, 21 May 2023 20:05:21 -0700 Subject: [PATCH] PandaDFU: don't reset in program_bootstub (#1433) --- python/dfu.py | 3 +-- tests/hitl/1_program.py | 1 + 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/python/dfu.py b/python/dfu.py index f724bf15d9..f1d20842ba 100644 --- a/python/dfu.py +++ b/python/dfu.py @@ -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() diff --git a/tests/hitl/1_program.py b/tests/hitl/1_program.py index eb0c6a5af3..3070a8c34c 100644 --- a/tests/hitl/1_program.py +++ b/tests/hitl/1_program.py @@ -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)