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_zodiac.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_zodiac.c')
-rw-r--r-- | driver_zodiac.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/driver_zodiac.c b/driver_zodiac.c index 0c1a4b6b..8ff73b7f 100644 --- a/driver_zodiac.c +++ b/driver_zodiac.c @@ -278,6 +278,7 @@ static gps_mask_t handle1003(struct gps_device_t *session) /* ticks = getzlong(6); */ /* sequence = getzword(8); */ + clear_dop(&session->gpsdata.dop); session->gpsdata.dop.gdop = (unsigned int)getzword(9) * 1e-2; session->gpsdata.dop.pdop = (unsigned int)getzword(10) * 1e-2; session->gpsdata.dop.hdop = (unsigned int)getzword(11) * 1e-2; |