Skip to content

Commit

Permalink
removed "latest*.bin" from firmware
Browse files Browse the repository at this point in the history
  • Loading branch information
Foroxon committed Dec 3, 2024
1 parent 61ba9e5 commit 4878925
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 8 deletions.
8 changes: 4 additions & 4 deletions firmware/platformio.ini
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,14 @@ lib_deps =
https://github.com/MatheusAlvesA/ArduinoAsync.git
adafruit/Adafruit [email protected]
adafruit/Adafruit [email protected]
bblanchon/[email protected].0
bblanchon/[email protected].1
gilmaimon/[email protected]
mathieucarbou/[email protected].22
mathieucarbou/[email protected].23
wollewald/[email protected]
denyschuhlib/[email protected]
fastled/[email protected].2
fastled/[email protected].4
tzapu/[email protected]
sensirion/[email protected].5
sensirion/[email protected].6
soylentorange/[email protected]
dawidchyrzynski/[email protected]
https://github.com/J-A-A-M/[email protected]
10 changes: 6 additions & 4 deletions firmware/src/JaamFirmware.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -983,11 +983,13 @@ void handleClick(int event, SoundType soundType) {
case 7:
rebootDevice();
break;
#if FW_UPDATE_ENABLED
#if FW_UPDATE_ENABLED
case 100:
downloadAndUpdateFw(settings.fw_update_channel == 1 ? "latest_beta.bin" : "latest.bin", settings.fw_update_channel == 1);
char updateFileName[30];
sprintf(updateFileName, "%s.bin", newFwVersion);
downloadAndUpdateFw(updateFileName, settings.fw_update_channel == 1);
break;
#endif
#endif
default:
// do nothing
break;
Expand Down Expand Up @@ -2120,7 +2122,7 @@ void handleFirmware(AsyncWebServerRequest* request) {
response->print("<option value='");
response->print(filename);
response->print("'");
if (filename == "latest.bin" || filename == "latest_beta.bin") response->print(" selected");
if (i == 0) response->print(" selected");
response->print(">");
response->print(filename);
response->println("</option>");
Expand Down

0 comments on commit 4878925

Please sign in to comment.