summaryrefslogtreecommitdiff
path: root/monitor_nmea0183.c
diff options
context:
space:
mode:
Diffstat (limited to 'monitor_nmea0183.c')
-rw-r--r--monitor_nmea0183.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/monitor_nmea0183.c b/monitor_nmea0183.c
index 52ff0a73..1accd7e2 100644
--- a/monitor_nmea0183.c
+++ b/monitor_nmea0183.c
@@ -180,7 +180,7 @@ static void nmea_update(void)
{
char **fields;
#ifdef PPS_ENABLE
- struct timedrift_t drift;
+ struct timedelta_t ppstimes;
#endif /* PPS_ENABLE */
assert(cookedwin != NULL);
@@ -326,10 +326,10 @@ static void nmea_update(void)
#ifdef PPS_ENABLE
/*@-compdef@*/
/*@-type -noeffect@*/ /* splint is confused about struct timespec */
- if (pps_thread_lastpps(&session, &drift) > 0) {
+ if (pps_thread_lastpps(&session, &ppstimes) > 0) {
/* NOTE: can not use double here due to precision requirements */
struct timespec timedelta;
- TS_SUB( &timedelta, &drift.clock, &drift.real);
+ TS_SUB( &timedelta, &ppstimes.clock, &ppstimes.real);
if ( 86400 < (long)labs(timedelta.tv_sec) ) {
/* more than one day off, overflow */
/* need a bigger field to show it */