when using ESPWifiManualSetup a build error appear
This commit is contained in:
1 parent
24bcdbc97c
commit
811054c904
1 file changed
+6
-6
+6
-6
@@ -580,12 +580,7 @@ void loop()
|
|||||||
if (reconnect()) {
|
if (reconnect()) {
|
||||||
lastReconnectAttempt = 0;
|
lastReconnectAttempt = 0;
|
||||||
} else {
|
} else {
|
||||||
#if defined(ESP8266) || defined(ESP32)
|
#if defined(ESPWifiManualSetup)
|
||||||
if (!connectedOnce) {
|
|
||||||
trc(F("reseting wifi manager"));
|
|
||||||
setup_wifimanager(true); // if we didn't connected once to mqtt we reset and start in AP mode again to have a chance to change the parameters
|
|
||||||
}
|
|
||||||
#elif defined(ESPWifiManualSetup)
|
|
||||||
trc(F("restarting ESP"));
|
trc(F("restarting ESP"));
|
||||||
#ifdef ESP32
|
#ifdef ESP32
|
||||||
ESP.restart();
|
ESP.restart();
|
||||||
@@ -593,6 +588,11 @@ void loop()
|
|||||||
#ifdef ESP8266
|
#ifdef ESP8266
|
||||||
ESP.reset();
|
ESP.reset();
|
||||||
#endif
|
#endif
|
||||||
|
#elif defined(ESP8266) || defined(ESP32)
|
||||||
|
if (!connectedOnce) {
|
||||||
|
trc(F("reseting wifi manager"));
|
||||||
|
setup_wifimanager(true); // if we didn't connected once to mqtt we reset and start in AP mode again to have a chance to change the parameters
|
||||||
|
}
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user