Enhance rotary encoder with custom sliders.

Soft watchdog timer (by poelzi)
This commit is contained in:
Blaz Kristan
2022-05-24 13:45:35 +02:00
parent 34a4382920
commit 17be0a2c12
6 changed files with 199 additions and 31 deletions

View File

@@ -281,6 +281,7 @@ void initServer()
if (!correctPIN || otaLock) return;
if(!index){
DEBUG_PRINTLN(F("OTA Update Start"));
WLED::instance().disableWatchdog();
lastEditTime = millis(); // make sure PIN does not lock during update
#ifdef ESP8266
Update.runAsync(true);
@@ -293,6 +294,7 @@ void initServer()
DEBUG_PRINTLN(F("Update Success"));
} else {
DEBUG_PRINTLN(F("Update Failed"));
WLED::instance().enableWatchdog();
}
}
});