fix(https_request): use write_flash esptool subcommand for compatibility

The esptool version bundled with the release/v5.5 IDF environment only
accepts the underscore subcommand name 'write_flash'. The hyphenated
alias 'write-flash' is rejected by argparse on this esptool version.
Use the canonical 'write_flash' name accepted by all esptool versions.
This commit is contained in:
Hrushikesh Bhosale
2026-05-27 11:53:34 +05:30
parent c8684960af
commit a756e5d6f3

View File

@@ -97,7 +97,7 @@ def write_time_to_nvs(dut: Dut) -> None:
with dut.serial.disable_redirect_thread():
dut.serial.esp.connect()
esptool.main(
['write-flash', '--no-compress', hex(nvs_offset), bin_file],
['write_flash', '--no-compress', hex(nvs_offset), bin_file],
esp=dut.serial.esp,
)
settings = dut.serial.proc.get_settings()