Skip to content

Commit

Permalink
Fix web hardware config
Browse files Browse the repository at this point in the history
  • Loading branch information
quadule committed Jul 20, 2023
1 parent 01eb671 commit a281064
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -283,13 +283,11 @@ void setup() {
changed = true;
}
AsyncWebParameter *firmwareParam = request->getParam("firmwareURL", true);
if (firmwareParam && firmwareURL != firmwareParam->value()) {
changed = true;
if (firmwareParam && !firmwareParam->value().isEmpty() && firmwareURL != firmwareParam->value()) {
firmwareURL = firmwareParam->value();
if (firmwareURL.isEmpty()) {
checkedForUpdateMillis = 0;
startFirmwareUpdateFromURL = true;
}
startFirmwareUpdateFromURL = true;
checkedForUpdateMillis = 0;
changed = true;
}
if (changed) {
writeDataJson();
Expand Down

0 comments on commit a281064

Please sign in to comment.