diff options
author | Gary E. Miller <gem@rellim.com> | 2009-11-17 08:56:04 +0000 |
---|---|---|
committer | Gary E. Miller <gem@rellim.com> | 2009-11-17 08:56:04 +0000 |
commit | d60aea351667213e5d1bf23a96412d2d607cb9cc (patch) | |
tree | 496e1280cf411ccded97997e487c0b7b578c0d22 | |
parent | 1ded788b72ff41ceaafe3fa4edf4cd7539fca759 (diff) | |
download | gpsd-d60aea351667213e5d1bf23a96412d2d607cb9cc.tar.gz |
Adjust Garmin Serial Binary NTPD fudge for 4800bps.
-rw-r--r-- | driver_garmin.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/driver_garmin.c b/driver_garmin.c index f11ed053..04fb0d1c 100644 --- a/driver_garmin.c +++ b/driver_garmin.c @@ -443,8 +443,11 @@ gps_mask_t PrintSERPacket(struct gps_device_t *session, unsigned char pkt_id break; } #ifdef NTPSHM_ENABLE - if (session->context->enable_ntpshm && session->gpsdata.fix.mode > MODE_NO_FIX) - (void) ntpshm_put(session, session->gpsdata.fix.time, 0); + if (session->context->enable_ntpshm + && session->gpsdata.fix.mode > MODE_NO_FIX) { + // Garmin SerBin fudge 0.430 valid at 4800bps + (void) ntpshm_put(session, session->gpsdata.fix.time, 0.430); + } #endif /* NTPSHM_ENABLE */ gpsd_report(LOG_PROG, "Appl, mode %d, status %d\n" |