From 4d73e11dc7b268889e5040e2ac18de425bc88eda Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcel=20St=C3=B6r?= Date: Thu, 17 Aug 2017 21:33:49 +0200 Subject: [PATCH] Stop triggering hard-reset after flash Fixes #22 --- Main.py | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/Main.py b/Main.py index b979129..dc85386 100644 --- a/Main.py +++ b/Main.py @@ -14,7 +14,7 @@ from esptool import NotImplementedInROMError from argparse import Namespace -__version__ = "2.0-beta" +__version__ = "2.1" __supported_baud_rates__ = [9600, 57600, 74880, 115200, 230400, 460800, 921600] # --------------------------------------------------------------------------- @@ -73,7 +73,7 @@ def run(self): args.no_stub = False args.verify = False # TRUE is deprecated args.compress = True - args.addr_filename = [[int("0x00000", 0), open(self._config.firmware_path, 'rb')]] + args.addr_filename = [[int("0x00000", 0), open(self._config.firmware_path, 'rb')]] print("Configuring flash size...") esptool.detect_flash_size(esp, args) @@ -82,9 +82,6 @@ def run(self): if self._config.erase_before_flash: esptool.erase_flash(esp, args) esptool.write_flash(esp, args) - - self._parent.log_message("Hard resetting...") # replicate behavior from esptool.py:2111 - esp.hard_reset() except SerialException as e: self._parent.report_error(e.strerror) raise e