Support settings pin unlock via JSON

Also supports locking by providing any incorrect pin
This commit is contained in:
Aircoookie
2023-06-14 11:53:39 +02:00
parent 670461c66f
commit dd9da2853a
8 changed files with 27 additions and 11 deletions

View File

@@ -138,7 +138,7 @@ void WLED::loop()
}
// 15min PIN time-out
if (strlen(settingsPIN)>0 && millis() - lastEditTime > 900000) {
if (strlen(settingsPIN)>0 && correctPIN && millis() - lastEditTime > PIN_TIMEOUT) {
correctPIN = false;
createEditHandler(false);
}