Skip to content

fixed the wording in the update scripts #10

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 6 commits into from
Feb 23, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions utilities/flash_firmware.bat
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ set /p userInput=Do you want to flash the firmware right now? (y/N):
if /i "%userInput%"=="y" (
python -m mpremote %port_string% run firmware_updater.py
) else (
echo Firmware was not flashed on the remote device.
echo The firmware will not be written to the device.
)

python -m mpremote %port_string% reset
Expand All @@ -53,4 +53,4 @@ echo Usage: %~nx0 [-p PORT] FILENAME
echo Options:
echo -p PORT Specify the device port
echo -h Display this help message
exit /b 0
exit /b 0
4 changes: 2 additions & 2 deletions utilities/flash_firmware.sh
Original file line number Diff line number Diff line change
Expand Up @@ -64,13 +64,13 @@ echo "Uploading $filename..."
$python_command -m mpremote $connect_string fs rm :firmware.bin
$python_command -m mpremote $connect_string fs cp $filename :firmware.bin

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

if [ "$do_flash" == "y" ] || [ "$do_flash" == "Y" ]; then
$python_command -m mpremote $connect_string run firmware_updater.py
else
echo "Firmware was not flashed on the remote device."
echo "The firmware will not be written to the device."
fi

$python_command -m mpremote $connect_string reset