Skip to content

Commit 9f17571

Browse files
committed
fix: flash_firmware relative path removed
1 parent b905c5e commit 9f17571

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

utilities/flash_firmware.sh

+4-4
Original file line numberDiff line numberDiff line change
@@ -49,20 +49,20 @@ else
4949
fi
5050

5151
# Uncomment the following line on windows machines
52-
python_command="python"
52+
# python_command="python"
5353

5454
echo "Installing flash firmware utilities..."
5555

5656
$python_command -m mpremote $connect_string fs rm :firmware_updater.py
5757
$python_command -m mpremote $connect_string fs rm :stm32_flash.py
5858

59-
$python_command -m mpremote $connect_string fs cp ./firmware_updater.py :firmware_updater.py
60-
$python_command -m mpremote $connect_string fs cp ./stm32_flash.py :stm32_flash.py
59+
$python_command -m mpremote $connect_string fs cp firmware_updater.py :firmware_updater.py
60+
$python_command -m mpremote $connect_string fs cp stm32_flash.py :stm32_flash.py
6161

6262
echo "Uploading $filename..."
6363

6464
$python_command -m mpremote $connect_string fs rm :firmware.bin
65-
$python_command -m mpremote $connect_string fs cp ./$filename :firmware.bin
65+
$python_command -m mpremote $connect_string fs cp $filename :firmware.bin
6666

6767
echo "Do want to flash the firmware right now? (y/N)"
6868
read do_flash

0 commit comments

Comments
 (0)