Merge pull request #339 from MoonModules/wifiscan_fix
Full WiFi scan (backport of upstream 5351)
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user