Skip to content

Commit

Permalink
Stop triggering hard-reset after flash
Browse files Browse the repository at this point in the history
Fixes #22
  • Loading branch information
marcelstoer committed Aug 17, 2017
1 parent baf99ca commit 4d73e11
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions Main.py
Original file line number Diff line number Diff line change
Expand Up @@ -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]

# ---------------------------------------------------------------------------
Expand Down Expand Up @@ -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)
Expand All @@ -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
Expand Down

0 comments on commit 4d73e11

Please sign in to comment.