Fixed firmware upload from GUI

This commit is contained in:
Gunnar Skjold
2024-12-05 19:15:17 +01:00
parent c0d95f918e
commit 40c84d2429
3 changed files with 35 additions and 18 deletions

View File

@@ -424,10 +424,15 @@ void setup() {
}
}
if(!hw.ledOn(LED_GREEN)) {
hw.ledOn(LED_INTERNAL);
}
if(updater.relocateOrRepartitionIfNecessary()) {
ESP.restart();
return;
}
hw.ledOff(LED_GREEN);
hw.ledOff(LED_INTERNAL);
WiFi.disconnect(true);
WiFi.softAPdisconnect(true);