mirror of
https://github.com/alexhopeoconnor/WiFiManager.git
synced 2026-10-04 02:48:13 +10:00
better fix $1386
This commit is contained in:
+2
-3
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user