mirror of
https://github.com/UtilitechAS/amsreader-firmware.git
synced 2026-04-26 04:07:57 +00:00
Fixed build errors
This commit is contained in:
@@ -1007,9 +1007,11 @@ void WiFi_connect() {
|
|||||||
case WL_CONNECTION_LOST:
|
case WL_CONNECTION_LOST:
|
||||||
debugE("WiFi error, connection lost");
|
debugE("WiFi error, connection lost");
|
||||||
break;
|
break;
|
||||||
|
#if defined(ESP8266)
|
||||||
case WL_WRONG_PASSWORD:
|
case WL_WRONG_PASSWORD:
|
||||||
debugE("WiFi error, wrong password");
|
debugE("WiFi error, wrong password");
|
||||||
break;
|
break;
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
if(wifiReconnectCount > 3) {
|
if(wifiReconnectCount > 3) {
|
||||||
ESP.restart();
|
ESP.restart();
|
||||||
@@ -1044,7 +1046,9 @@ void WiFi_connect() {
|
|||||||
WiFi.softAPdisconnect(true);
|
WiFi.softAPdisconnect(true);
|
||||||
WiFi.enableAP(false);
|
WiFi.enableAP(false);
|
||||||
WiFi.mode(WIFI_OFF);
|
WiFi.mode(WIFI_OFF);
|
||||||
WiFi.forceSleepBegin();
|
#if defined(ESP8266)
|
||||||
|
WiFi.forceSleepBegin();
|
||||||
|
#endif
|
||||||
yield();
|
yield();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user