comment out full wifi scan

This commit is contained in:
helgeerbe 2023-03-01 12:09:53 +01:00
parent 4a51ae5038
commit 6241a31e8c

View File

@ -121,8 +121,10 @@ void NetworkSettingsClass::setupMode()
dnsServer->stop(); dnsServer->stop();
dnsServerStatus = false; dnsServerStatus = false;
if (_networkMode == network_mode::WiFi) { if (_networkMode == network_mode::WiFi) {
/* // TODO (helge) check if this makes problems to connect to the ap
WiFi.setScanMethod(WIFI_ALL_CHANNEL_SCAN); WiFi.setScanMethod(WIFI_ALL_CHANNEL_SCAN);
WiFi.setSortMethod(WIFI_CONNECT_AP_BY_SIGNAL); WiFi.setSortMethod(WIFI_CONNECT_AP_BY_SIGNAL);
*/
WiFi.mode(WIFI_STA); WiFi.mode(WIFI_STA);
} else { } else {
WiFi.mode(WIFI_MODE_NULL); WiFi.mode(WIFI_MODE_NULL);