gpsread.cpp: code sanitization
This commit is contained in:
parent
4973568546
commit
cb7b600168
@ -83,13 +83,9 @@ void IRAM_ATTR gps_storetime(gpsStatus_t *gps_store) {
|
|||||||
if (gps.time.isUpdated() && gps.date.isValid() && (gps.time.age() < 1000)) {
|
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)
|
||||||
if (gps.time.age() > nmea_txDelay_ms)
|
// gps_store->timedate.Second = gps.time.second() + 1;
|
||||||
gps_store->timedate.Second = gps.time.second() + 1;
|
// else
|
||||||
else
|
|
||||||
gps_store->timedate.Second = gps.time.second();
|
|
||||||
*/
|
|
||||||
|
|
||||||
gps_store->timedate.Second = gps.time.second();
|
gps_store->timedate.Second = gps.time.second();
|
||||||
gps_store->timedate.Minute = gps.time.minute();
|
gps_store->timedate.Minute = gps.time.minute();
|
||||||
gps_store->timedate.Hour = gps.time.hour();
|
gps_store->timedate.Hour = gps.time.hour();
|
||||||
|
Loading…
Reference in New Issue
Block a user