From cb7b6001682bfc2c9402422de4577bd618be1ee5 Mon Sep 17 00:00:00 2001 From: Verkehrsrot Date: Mon, 29 Jul 2019 00:24:37 +0200 Subject: [PATCH] gpsread.cpp: code sanitization --- src/gpsread.cpp | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/src/gpsread.cpp b/src/gpsread.cpp index d746d127..b63be1ab 100644 --- a/src/gpsread.cpp +++ b/src/gpsread.cpp @@ -83,13 +83,9 @@ 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? - /* - 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.Minute = gps.time.minute(); gps_store->timedate.Hour = gps.time.hour();