summaryrefslogtreecommitdiff
path: root/driver_sirf.c
diff options
context:
space:
mode:
authorGary E. Miller <gem@rellim.com>2009-11-17 08:48:49 +0000
committerGary E. Miller <gem@rellim.com>2009-11-17 08:48:49 +0000
commit1ded788b72ff41ceaafe3fa4edf4cd7539fca759 (patch)
tree6948b052e87327d4f2c57371a183846021f8de67 /driver_sirf.c
parenta26c18ff79932c1ae391c88c103976aab30dd627 (diff)
downloadgpsd-1ded788b72ff41ceaafe3fa4edf4cd7539fca759.tar.gz
Ignore SiRF message type 0x04 for OOx purposes.
It is about 1s old and therefore can be confusing to PPS second decoding.
Diffstat (limited to 'driver_sirf.c')
-rw-r--r--driver_sirf.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/driver_sirf.c b/driver_sirf.c
index cb434dcf..4758d06c 100644
--- a/driver_sirf.c
+++ b/driver_sirf.c
@@ -416,10 +416,14 @@ static gps_mask_t sirf_msg_svinfo(struct gps_device_t *session, unsigned char *b
"NTPD valid time in message 0x04, seen=0x%02x\n",
session->driver.sirf.time_seen);
session->driver.sirf.time_seen |= TIME_SEEN_GPS_1;
+#if __UNUSED__
+ /* this time stamp, at 4800bps, is so close to 1 sec old as to
+ * be confusing to ntpshm_put(), so ignore */
if (session->context->enable_ntpshm) {
// fudge valid at 4800bps
- (void)ntpshm_put(session,session->gpsdata.skyview_time, 0.700);
+ (void)ntpshm_put(session,session->gpsdata.skyview_time, 1.040);
}
+#endif
}
#endif /* NTPSHM_ENABLE */
gpsd_report(LOG_DATA, "MTD 0x04: visible=%d mask={SATELLITE}\n",