From 44cf2ece1632b44487b62ed0bd9a43c9d1ed5bf5 Mon Sep 17 00:00:00 2001 From: Verkehrsrot Date: Tue, 16 Jul 2019 21:21:15 +0200 Subject: [PATCH] gpsread.cpp: nmea serial delay compensation fix --- src/gpsread.cpp | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/src/gpsread.cpp b/src/gpsread.cpp index 142eef08..1bc8f343 100644 --- a/src/gpsread.cpp +++ b/src/gpsread.cpp @@ -79,13 +79,12 @@ void IRAM_ATTR gps_storetime(gpsStatus_t &gps_store) { if (gps.time.isUpdated() && gps.date.isValid() && (gps.time.age() < 1000)) { - /* nmea telegram serial delay compensation; not sure if we need this? + // nmea telegram serial delay compensation; not sure if we need this? - if (gps.time.age() > nmea_txDelay_ms) - gps_store.timedate.Second = gps.time.second() + 1; - else - gps_store.timedate.Second = gps.time.second(); - */ + if (gps.time.age() > nmea_txDelay_ms) + gps_store.timedate.Second = gps.time.second() + 1; + else + gps_store.timedate.Second = gps.time.second(); gps_store.timedate.Second = gps.time.second(); gps_store.timedate.Minute = gps.time.minute();