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 + } } } }