diff options
author | Gary E. Miller <gem@rellim.com> | 2009-11-17 08:48:49 +0000 |
---|---|---|
committer | Gary E. Miller <gem@rellim.com> | 2009-11-17 08:48:49 +0000 |
commit | 1ded788b72ff41ceaafe3fa4edf4cd7539fca759 (patch) | |
tree | 6948b052e87327d4f2c57371a183846021f8de67 /driver_sirf.c | |
parent | a26c18ff79932c1ae391c88c103976aab30dd627 (diff) | |
download | gpsd-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.c | 6 |
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", |