Arduino OTA lock fix.

This commit is contained in:
Blaz Kristan
2022-05-01 22:09:40 +02:00
parent e088f7a552
commit 9f71a6ab18
4 changed files with 144 additions and 144 deletions

View File

@@ -83,7 +83,7 @@ void WLED::loop()
{
if (apActive) dnsServer.processNextRequest();
#ifndef WLED_DISABLE_OTA
if (WLED_CONNECTED && aOtaEnabled) ArduinoOTA.handle();
if (WLED_CONNECTED && aOtaEnabled && !otaLock && correctPIN) ArduinoOTA.handle();
#endif
handleNightlight();
handlePlaylist();