diff --git a/wled00/wled.cpp b/wled00/wled.cpp index 4a686f72c..4ab4d0686 100644 --- a/wled00/wled.cpp +++ b/wled00/wled.cpp @@ -898,7 +898,7 @@ void WLED::handleConnection() // ignore connection handling if WiFi is configured and scan still running // or within first 2s if WiFi is not configured or AP is always active - if ((wifiConfigured && WiFi.scanComplete() < 0) || (now < 2000 && (!wifiConfigured || apBehavior == AP_BEHAVIOR_ALWAYS))) + if ((wifiConfigured && multiWiFi.size() > 1 && WiFi.scanComplete() < 0) || (now < 2000 && (!wifiConfigured || apBehavior == AP_BEHAVIOR_ALWAYS))) return; if (lastReconnectAttempt == 0 || forceReconnect) { @@ -950,7 +950,7 @@ void WLED::handleConnection() if (!Network.isConnected()) { if (interfacesInited) { - if (scanDone) { + if (scanDone && multiWiFi.size() > 1) { DEBUG_PRINTLN(F("WiFi scan initiated on disconnect.")); findWiFi(true); // reinit scan scanDone = false;