summaryrefslogtreecommitdiff
path: root/libgpsd_core.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2005-05-16 20:36:50 +0000
committerEric S. Raymond <esr@thyrsus.com>2005-05-16 20:36:50 +0000
commitb69a4e229ebf465a73455fc01a3b3d5d70881109 (patch)
treefbd5896556043f963c6317624a80fdd14c0008df /libgpsd_core.c
parentc6661484cde558123d8e1daa6bb675ad8e0d0dd3 (diff)
downloadgpsd-b69a4e229ebf465a73455fc01a3b3d5d70881109.tar.gz
Rob Janssen's second big timekeeping patch.
Diffstat (limited to 'libgpsd_core.c')
-rw-r--r--libgpsd_core.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libgpsd_core.c b/libgpsd_core.c
index 8fbd0b23..06bd0da1 100644
--- a/libgpsd_core.c
+++ b/libgpsd_core.c
@@ -481,7 +481,7 @@ int gpsd_ppsmonitor(struct gps_device_t *session)
plen = (tv.tv_sec-pulse[c].tv_sec)*1000000+tv.tv_usec-pulse[c].tv_usec;
pa = (tv.tv_sec-pulse[!c].tv_sec)*1000000+tv.tv_usec-pulse[!c].tv_usec;
- if (plen > 999000 && plen < 1001000 && pa > 800000)
+ if (plen > 999000 && plen < 1001000 && pa > 800000 && session->gpsdata.fix.mode > MODE_NO_FIX)
ntpshm_pps(session->context, &tv);
pulse[c] = tv;