idf.py: Add --before flag to esptool.py call

Merges https://github.com/espressif/esp-idf/pull/4125
This commit is contained in:
tatsutaigu
2019-09-27 11:19:08 +09:00
committed by Sergei Silnov
parent c0c75478fa
commit e6ad82a0b2
2 changed files with 3 additions and 1 deletions

View File

@@ -40,6 +40,7 @@ def action_extensions(base_actions, project_path):
flasher_args = json.load(f)
extra_esptool_args = flasher_args["extra_esptool_args"]
result += ["--before", extra_esptool_args["before"]]
result += ["--after", extra_esptool_args["after"]]
return result