From db8a48b1c476dee25efdb168852f460d669c27f7 Mon Sep 17 00:00:00 2001 From: livello Date: Thu, 11 Oct 2018 11:04:05 +0300 Subject: [PATCH] lan init fix --- lighthub/main.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lighthub/main.cpp b/lighthub/main.cpp index 50800ee..f1a0a23 100644 --- a/lighthub/main.cpp +++ b/lighthub/main.cpp @@ -239,7 +239,8 @@ lan_status lanLoop() { switch (lanStatus) { case INITIAL_STATE: - onInitialStateInitLAN(); + if (millis() > nextLanCheckTime) + onInitialStateInitLAN(); break; case HAVE_IP_ADDRESS: @@ -467,7 +468,8 @@ void onInitialStateInitLAN() { lanStatus = HAVE_IP_ADDRESS;//1; } else { - debugSerial<