Browse Source
Merge pull request #1342 from mcspr/fix/ntp-year-2036
Use NTP last sync timestamp for ntpSynced()
alexa
Xose Pérez
6 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
1 additions and
1 deletions
-
code/espurna/ntp.ino
|
|
@ -128,7 +128,7 @@ void _ntpBackwards() { |
|
|
|
// -----------------------------------------------------------------------------
|
|
|
|
|
|
|
|
bool ntpSynced() { |
|
|
|
return (year() > 2017); |
|
|
|
return (NTP.getLastNTPSync() > 0); |
|
|
|
} |
|
|
|
|
|
|
|
String ntpDateTime(time_t t) { |
|
|
|