mirror of https://github.com/arendst/Tasmota.git
Allow overriding reset operation via project file
to make it possible to use `usb_reset`. Needed by CDC devices. Infos https://github.com/platformio/platform-espressif32/issues/874
This commit is contained in:
parent
9cd7320637
commit
73166cace7
|
@ -178,8 +178,8 @@ def esp32_create_combined_bin(source, target, env):
|
||||||
"--chip", chip,
|
"--chip", chip,
|
||||||
"--port", '"$UPLOAD_PORT"',
|
"--port", '"$UPLOAD_PORT"',
|
||||||
"--baud", "$UPLOAD_SPEED",
|
"--baud", "$UPLOAD_SPEED",
|
||||||
"--before", "default_reset",
|
"--before", board.get("upload.before_reset", "default_reset"),
|
||||||
"--after", "hard_reset",
|
"--after", board.get("upload.after_reset", "hard_reset"),
|
||||||
"write_flash", "-z",
|
"write_flash", "-z",
|
||||||
"--flash_mode", "${__get_board_flash_mode(__env__)}",
|
"--flash_mode", "${__get_board_flash_mode(__env__)}",
|
||||||
"--flash_freq", "${__get_board_f_flash(__env__)}",
|
"--flash_freq", "${__get_board_f_flash(__env__)}",
|
||||||
|
|
Loading…
Reference in New Issue