lan init fix

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

View File

@@ -239,7 +239,8 @@ lan_status lanLoop() {
switch (lanStatus) { switch (lanStatus) {
case INITIAL_STATE: case INITIAL_STATE:
onInitialStateInitLAN(); if (millis() > nextLanCheckTime)
onInitialStateInitLAN();
break; break;
case HAVE_IP_ADDRESS: case HAVE_IP_ADDRESS:
@@ -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