diff --git a/wled00/wled.cpp b/wled00/wled.cpp index f3f61bc238..3748a9f171 100644 --- a/wled00/wled.cpp +++ b/wled00/wled.cpp @@ -777,6 +777,11 @@ void WLED::setup() if (strcmp(clientSSID, DEFAULT_CLIENT_SSID) == 0) showWelcomePage = true; + + #if !defined(ESP8266) && (ESP_IDF_VERSION_MAJOR >= 4) + WiFi.setScanMethod(WIFI_ALL_CHANNEL_SCAN); // bugfix: ensure that all channels are scanned, and the strongest signal is used + #endif + WiFi.persistent(false); #ifdef WLED_USE_ETHERNET WiFi.onEvent(WiFiEvent);