Skip to content

Commit 48bdba1

Browse files
committed
Allow multiple Espressif virtualenv - just use latest
1 parent 92e2c01 commit 48bdba1

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

scripts/flash_over_usb.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,6 @@ ls -al $fwfile
99
echo "Add --erase-all if needed"
1010
sleep 5
1111
# This needs python and the esptool
12-
~/.espressif/python_env/*/bin/python -m esptool --chip esp32s3 --before default_reset --after hard_reset write_flash --flash_mode dio --flash_size 16MB --flash_freq 80m 0 $fwfile $@
12+
python=$(ls -tr ~/.espressif/python_env/*/bin/python|tail -1)
13+
$python -m esptool --chip esp32s3 --before default_reset --after hard_reset write_flash --flash_mode dio --flash_size 16MB --flash_freq 80m 0 $fwfile $@
1314

0 commit comments

Comments
 (0)