summaryrefslogtreecommitdiff
path: root/gpsmon.c
diff options
context:
space:
mode:
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 de29f005..7fb80b38 100644
--- a/gpsmon.c
+++ b/gpsmon.c
@@ -746,7 +746,7 @@ static void gpsmon_hook(struct gps_device_t *device, gps_mask_t changed UNUSED)
#ifdef NTPSHM_ENABLE
/* Update the last fix time seen for PPS if we've actually seen one. */
- if (!isnan(device->newdata.time))
+ if (isnan(device->newdata.time)==0)
ntpshm_latch(device, &td);
#endif /* NTPSHM_ENABLE */
}