DanielR92
3 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
5 additions and
0 deletions
-
tools/esp8266/app.cpp
|
@ -60,6 +60,11 @@ void app::loop(void) { |
|
|
if(!apActive) { |
|
|
if(!apActive) { |
|
|
mTimestamp = mWifi->getNtpTime(); |
|
|
mTimestamp = mWifi->getNtpTime(); |
|
|
DPRINTLN(DBG_INFO, "[NTP]: " + getDateTimeStr(mTimestamp)); |
|
|
DPRINTLN(DBG_INFO, "[NTP]: " + getDateTimeStr(mTimestamp)); |
|
|
|
|
|
|
|
|
|
|
|
if(!mTimestamp) // if mTimestamp is 0
|
|
|
|
|
|
{ |
|
|
|
|
|
// Todo: when no connection, then use standard ntp
|
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|