Explorar o código

changed scan logic - only scan on demand when starting up or a webpage is hit

Alan Steremberg %!s(int64=8) %!d(string=hai) anos
pai
achega
3100e43800
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      ESPAsyncWiFiManager.cpp

+ 1 - 0
ESPAsyncWiFiManager.cpp

@@ -325,6 +325,7 @@ boolean  AsyncWiFiManager::startConfigPortal(char const *apName, char const *apP
 	if ( millis() > scannow + 10000)
 	{
 	DEBUG_WM(F("About to scan()"));
+	shouldscan=true;  // since we are modal, we can scan every time
 	scan();
 	scannow= millis() ;
 	}