Better GPS time synchronization

This commit is contained in:
Niccolò Izzo 2021-02-17 14:58:20 +01:00
parent 57a1d11228
commit f49655c44d
1 changed files with 1 additions and 1 deletions

View File

@ -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;