summaryrefslogtreecommitdiff
path: root/driver_oncore.c
diff options
context:
space:
mode:
authorGary E. Miller <gem@rellim.com>2009-12-09 00:17:16 +0000
committerGary E. Miller <gem@rellim.com>2009-12-09 00:17:16 +0000
commit709eec6139d99bb72877417c45f764b89ae1ba1f (patch)
tree27107780b7ccdb52d8d7acd9dd6ea9e30e9ff7bd /driver_oncore.c
parent214f0603742b84dc01ef79ab235d106cd3a266ff (diff)
downloadgpsd-709eec6139d99bb72877417c45f764b89ae1ba1f.tar.gz
Comment conditions for the current OncoreUT+ NTP fudge.
Diffstat (limited to 'driver_oncore.c')
-rw-r--r--driver_oncore.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/driver_oncore.c b/driver_oncore.c
index a7e476e3..7612fce5 100644
--- a/driver_oncore.c
+++ b/driver_oncore.c
@@ -110,8 +110,14 @@ oncore_msg_navsol(struct gps_device_t *session, unsigned char *buf, size_t data_
/* Only update the NTP time if we've seen the leap-seconds data.
* Else we may be providing GPS time.
*/
- if (session->context->enable_ntpshm)
+ if (session->context->enable_ntpshm) {
+ /* 0.175 seems best at 600 for UT+, not sure what the fudge
+ * should be at other baud rates or for other models.
+ * If you change this be sure to allow for multiple baud
+ * rates/models.
+ */
(void)ntpshm_put(session, session->gpsdata.fix.time, 0.175);
+ }
#endif /* NTPSHM_ENABLE */
gpsd_report(LOG_IO, "oncore NAVSOL - time: %04d-%02d-%02d %02d:%02d:%02d.%09d\n",