Merge pull request #4652 from wled/disable-ota

Only disable Arduino OTA when using -D WLED_DISABLE_OTA
This commit is contained in:
Blaž Kristan
2025-05-24 21:27:08 +02:00
committed by GitHub
6 changed files with 19 additions and 8 deletions

View File

@@ -606,7 +606,9 @@ void handleSettingsSet(AsyncWebServerRequest *request, byte subPage)
{
otaLock = request->hasArg(F("NO"));
wifiLock = request->hasArg(F("OW"));
#ifndef WLED_DISABLE_OTA
aOtaEnabled = request->hasArg(F("AO"));
#endif
//createEditHandler(correctPIN && !otaLock);
}
}