diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2009-09-15 14:23:13 +0000 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2009-09-15 14:23:13 +0000 |
commit | 28badddbaab56f24ae871bedc8eb6ad06cf7177d (patch) | |
tree | 50fe1e53649fedb11965161895aea4d8e1d3e5fb /driver_ubx.c | |
parent | 04977d1fcbc33ae3f078f80423103d091c8029de (diff) | |
download | gpsd-28badddbaab56f24ae871bedc8eb6ad06cf7177d.tar.gz |
Begin using clear_dop to ensure that gpsd never reports stale DOP values.
All regression tests pass.
Diffstat (limited to 'driver_ubx.c')
-rw-r--r-- | driver_ubx.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/driver_ubx.c b/driver_ubx.c index 5d8adcdf..c98d5562 100644 --- a/driver_ubx.c +++ b/driver_ubx.c @@ -131,6 +131,7 @@ ubx_msg_nav_dop(struct gps_device_t *session, unsigned char *buf, size_t data_le if (data_len != 18) return 0; + clear_dop(&session->gpsdata.dop); session->gpsdata.dop.gdop = (double)(getleuw(buf, 4)/100.0); session->gpsdata.dop.pdop = (double)(getleuw(buf, 6)/100.0); session->gpsdata.dop.tdop = (double)(getleuw(buf, 8)/100.0); |