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
parent
commit
56a8010a4d
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      code/espurna/ntp.ino

+ 1
- 1
code/espurna/ntp.ino View File

@ -128,7 +128,7 @@ void _ntpBackwards() {
// ----------------------------------------------------------------------------- // -----------------------------------------------------------------------------
bool ntpSynced() { bool ntpSynced() {
return (year() > 2017);
return (NTP.getLastNTPSync() > 0);
} }
String ntpDateTime(time_t t) { String ntpDateTime(time_t t) {


Loading…
Cancel
Save