1
0
mirror of https://github.com/esphome/esphome.git synced 2025-09-04 12:22:20 +01:00

Autodetect flash size (#2615)

This commit is contained in:
Stefan Agner
2021-10-23 13:25:46 +02:00
committed by GitHub
parent 1a6a063e04
commit b9e5c7eb35

View File

@@ -226,6 +226,8 @@ def upload_using_esptool(config, port):
mcu,
"write_flash",
"-z",
"--flash_size",
"detect",
]
for img in flash_images:
cmd += [img.offset, img.path]