Skip to content

Commit

Permalink
fixes #1164 thanks @fretzbiz
Browse files Browse the repository at this point in the history
  • Loading branch information
tablatronix committed Dec 10, 2020
1 parent f0d3a24 commit 1fb70a9
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions WiFiManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1337,10 +1337,11 @@ bool WiFiManager::WiFi_scanNetworks(unsigned int cachetime){
return WiFi_scanNetworks(millis()-_lastscan > cachetime,false);
}
bool WiFiManager::WiFi_scanNetworks(bool force,bool async){
#ifdef WM_DEBUG_LEVEL
#ifdef WM_DEBUG_LEVEL
// DEBUG_WM(DEBUG_DEV,"scanNetworks async:",async == true);
// DEBUG_WM(DEBUG_DEV,_numNetworks,(millis()-_lastscan ));
// DEBUG_WM(DEBUG_DEV,"scanNetworks force:",force == true);
#endif
if(_numNetworks == 0){
DEBUG_WM(DEBUG_DEV,"NO APs found forcing new scan");
force = true;
Expand Down Expand Up @@ -3520,5 +3521,5 @@ void WiFiManager::handleUpdateDone() {
ESP.restart();
}
}
#endif

#endif

0 comments on commit 1fb70a9

Please sign in to comment.