From 4ab16762a5ea33b1eefb5e5338d9a55ea47f6c68 Mon Sep 17 00:00:00 2001 From: DanielR92 Date: Thu, 25 Aug 2022 16:11:23 +0200 Subject: [PATCH] Add If statement with a todo note... --- tools/esp8266/app.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tools/esp8266/app.cpp b/tools/esp8266/app.cpp index 938a3e5a..247aa16e 100644 --- a/tools/esp8266/app.cpp +++ b/tools/esp8266/app.cpp @@ -60,6 +60,11 @@ void app::loop(void) { if(!apActive) { mTimestamp = mWifi->getNtpTime(); DPRINTLN(DBG_INFO, "[NTP]: " + getDateTimeStr(mTimestamp)); + + if(!mTimestamp) // if mTimestamp is 0 + { + // Todo: when no connection, then use standard ntp + } } } }