mirror of
https://github.com/anklimov/lighthub
synced 2025-12-07 20:29:50 +03:00
lan init fix
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user