mirror of
https://github.com/alexhopeoconnor/WiFiManager.git
synced 2026-10-04 02:48:13 +10:00
Enable Portal Timeout in not Blocking Portal (#1331)
Enable the use of setConfigPortalTimeout( ) & setConfigPortalBlocking(false) at same time, by calling process()
This commit is contained in:
@@ -756,6 +756,10 @@ boolean WiFiManager::process(){
|
||||
#if defined(WM_MDNS) && defined(ESP8266)
|
||||
MDNS.update();
|
||||
#endif
|
||||
|
||||
if(configPortalActive && !_configPortalIsBlocking){
|
||||
if(configPortalHasTimeout()) shutdownConfigPortal();
|
||||
}
|
||||
|
||||
if(webPortalActive || (configPortalActive && !_configPortalIsBlocking)){
|
||||
uint8_t state = processConfigPortal();
|
||||
|
||||
Reference in New Issue
Block a user