Skip to content

Commit 81258d6

Browse files
committed
Wifi firmware flasher: allow usage of binary esptool
1 parent 5ef8470 commit 81258d6

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

Diff for: libraries/WiFi/extra/flasher.sh

+7-1
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,12 @@ fi
1414

1515
PATH=$ESPTOOL_PATH:$PATH
1616

17-
esptool.py --chip esp32c3 -p $PORT -b 230400 --before=default_reset --after=hard_reset write_flash --flash_mode dio --flash_freq 80m --flash_size 2MB 0x0 bootloader.bin 0x8000 partition-table.bin 0x10000 network_adapter.bin
17+
if [ -f "$ESPTOOL_PATH/esptool.py" ]; then
18+
ESPTOOL_CMD=esptool.py
19+
else
20+
ESPTOOL_CMD=esptool
21+
fi
22+
23+
$ESPTOOL_CMD --chip esp32c3 -p $PORT -b 230400 --before=default_reset --after=hard_reset write_flash --flash_mode dio --flash_freq 80m --flash_size 2MB 0x0 bootloader.bin 0x8000 partition-table.bin 0x10000 network_adapter.bin
1824

1925

0 commit comments

Comments
 (0)