From f49655c44d6ef105df09f68ecaab80a3b303bbe6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Niccol=C3=B2=20Izzo?= Date: Wed, 17 Feb 2021 14:58:20 +0100 Subject: [PATCH] Better GPS time synchronization --- openrtx/src/gps.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openrtx/src/gps.c b/openrtx/src/gps.c index e8aa917e..6714468d 100644 --- a/openrtx/src/gps.c +++ b/openrtx/src/gps.c @@ -38,7 +38,7 @@ void gps_taskFunc(char *line, __attribute__((unused)) int len, state_t *state) state->gps_data.longitude = minmea_tocoord(&frame.longitude); state->gps_data.timestamp.hour = frame.time.hours; state->gps_data.timestamp.minute = frame.time.minutes; - state->gps_data.timestamp.second = frame.time.seconds + 1; + state->gps_data.timestamp.second = frame.time.seconds; state->gps_data.timestamp.day = 0; state->gps_data.timestamp.date = frame.date.day; state->gps_data.timestamp.month = frame.date.month;