summaryrefslogtreecommitdiff
path: root/gpsmon.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2015-03-08 09:35:03 -0400
committerEric S. Raymond <esr@thyrsus.com>2015-03-08 09:35:03 -0400
commitc82fe00247bd9fcbf5a70901c3b022e8ddd5ab0f (patch)
treef6876e6cc50dd166e94c30851804bb7911c0e613 /gpsmon.c
parent2144fc0fde0b5ba35bc252beaef753c2e07e9fd8 (diff)
downloadgpsd-c82fe00247bd9fcbf5a70901c3b022e8ddd5ab0f.tar.gz
Eliminate timestamp-T use from PPS thread code.
PPS observed live on GR-601W. All regression yests pass.
Diffstat (limited to 'gpsmon.c')
-rw-r--r--gpsmon.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gpsmon.c b/gpsmon.c
index 4b9484f8..b39eee94 100644
--- a/gpsmon.c
+++ b/gpsmon.c
@@ -848,7 +848,7 @@ static void gpsmon_hook(struct gps_device_t *device, gps_mask_t changed UNUSED)
if ( 0 != isnan(device->newdata.time)) {
// "NTP: bad new time
#ifdef PPS_ENABLE
- } else if (device->newdata.time == device->pps_thread.fixin_real) {
+ } else if (device->newdata.time <= device->pps_thread.fixin_real.tv_sec) {
// "NTP: Not a new time
#endif /* PPS_ENABLE */
} else