summaryrefslogtreecommitdiff
path: root/gpsd.c
diff options
context:
space:
mode:
Diffstat (limited to 'gpsd.c')
-rw-r--r--gpsd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gpsd.c b/gpsd.c
index b689d81f..3ffdc4c0 100644
--- a/gpsd.c
+++ b/gpsd.c
@@ -1531,7 +1531,7 @@ static void all_reports(struct gps_device_t *device, gps_mask_t changed)
} else if (isnan(device->newdata.time)) {
//gpsd_log(&context.errout, LOG_PROG, "NTP: bad new time\n");
#if defined(PPS_ENABLE) && !defined(S_SPLINT_S)
- } else if (device->newdata.time <= device->pps_thread.fixin_real.tv_sec) {
+ } else if (device->newdata.time <= device->pps_thread.fixin.real.tv_sec) {
//gpsd_log(&context.errout, LOG_PROG, "NTP: Not a new time\n");
#endif /* PPS_ENABLE */
} else if (!device->ship_to_ntpd) {