lan init fix

This commit is contained in:
livello
2018-10-11 11:04:05 +03:00
parent dcf2fcf58e
commit db8a48b1c4

View File

@@ -239,6 +239,7 @@ lan_status lanLoop() {
switch (lanStatus) { switch (lanStatus) {
case INITIAL_STATE: case INITIAL_STATE:
if (millis() > nextLanCheckTime)
onInitialStateInitLAN(); onInitialStateInitLAN();
break; break;
@@ -467,7 +468,8 @@ void onInitialStateInitLAN() {
lanStatus = HAVE_IP_ADDRESS;//1; lanStatus = HAVE_IP_ADDRESS;//1;
} else } else
{ {
debugSerial<<F("Problem with WiFi connected");
debugSerial<<F("Problem with WiFi!");
nextLanCheckTime = millis() + DHCP_RETRY_INTERVAL/5; nextLanCheckTime = millis() + DHCP_RETRY_INTERVAL/5;
} }
#endif #endif