From 0206e6515286232516b591ded07a6f18d166c740 Mon Sep 17 00:00:00 2001 From: michelepagot Date: Sun, 23 May 2021 02:33:15 +0200 Subject: [PATCH] fix device-install.bat about star usage --- bin/device-install.bat | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/bin/device-install.bat b/bin/device-install.bat index db48d30cd..4837d61b1 100644 --- a/bin/device-install.bat +++ b/bin/device-install.bat @@ -30,7 +30,9 @@ IF EXIST %FILENAME% ( echo Trying to flash update %FILENAME%, but first erasing and writing system information" %PYTHON% -m esptool --baud 921600 erase_flash %PYTHON% -m esptool --baud 921600 write_flash 0x1000 system-info.bin - %PYTHON% -m esptool --baud 921600 write_flash 0x00390000 spiffs-*.bin + for %%f in (spiffs-*.bin) do ( + %PYTHON% -m esptool --baud 921600 write_flash 0x00390000 %%f + ) %PYTHON% -m esptool --baud 921600 write_flash 0x10000 %FILENAME% ) else ( echo "Invalid file: %FILENAME%"