Browse Source

Check NTP sync status

Avoid 0 timestamp bug
alexa
Max Prokhorov 5 years ago
committed by GitHub
parent
commit
ed0d4f6674
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