better fix $1386

This commit is contained in:
tablatronix
2022-04-07 08:41:57 -05:00
parent 379ffee475
commit 590e212ddb
+2 -3
View File
@@ -637,9 +637,8 @@ void WiFiManager::setupDNSD(){
}
void WiFiManager::setupConfigPortal() {
setupHTTPServer();
_lastscan = 0; // reset network scan cache
if(_preloadwifiscan) WiFi_scanNetworks(true,true); // preload wifiscan , async
}
@@ -1489,7 +1488,7 @@ bool WiFiManager::WiFi_scanNetworks(bool force,bool async){
String WiFiManager::WiFiManager::getScanItemOut(){
String page;
if(!_numNetworks) WiFi_scanNetworks(true); // scan in case this gets called before any scans
if(!_numNetworks) WiFi_scanNetworks(); // scan in case this gets called before any scans
int n = _numNetworks;
if (n == 0) {