oops deleted a function

This commit is contained in:
Shawn A
2017-02-10 15:40:31 -06:00
parent 0b0eb6159c
commit 612e18be35
+8
View File
@@ -151,6 +151,14 @@ bool WiFiManager::startAP(){
return ret;
}
boolean WiFiManager::configPortalHasTimeout(){
if(_configPortalTimeout == 0 || wifi_softap_get_station_num() > 0){
_configPortalStart = millis(); // kludge, bump configportal start time to skew timeouts
return false;
}
return (millis() > _configPortalStart + _configPortalTimeout);
}
void WiFiManager::setupConfigPortal() {
// setup dns and web servers
dnsServer.reset(new DNSServer());