summaryrefslogtreecommitdiff
path: root/driver_superstar2.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2009-09-15 14:23:13 +0000
committerEric S. Raymond <esr@thyrsus.com>2009-09-15 14:23:13 +0000
commit28badddbaab56f24ae871bedc8eb6ad06cf7177d (patch)
tree50fe1e53649fedb11965161895aea4d8e1d3e5fb /driver_superstar2.c
parent04977d1fcbc33ae3f078f80423103d091c8029de (diff)
downloadgpsd-28badddbaab56f24ae871bedc8eb6ad06cf7177d.tar.gz
Begin using clear_dop to ensure that gpsd never reports stale DOP values.
All regression tests pass.
Diffstat (limited to 'driver_superstar2.c')
-rw-r--r--driver_superstar2.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/driver_superstar2.c b/driver_superstar2.c
index 3397c6d9..b09f3a94 100644
--- a/driver_superstar2.c
+++ b/driver_superstar2.c
@@ -116,6 +116,7 @@ superstar2_msg_navsol_lla(struct gps_device_t *session,
mask |= LATLON_SET | ALTITUDE_SET | SPEED_SET | TRACK_SET | CLIMB_SET ;
session->gpsdata.satellites_used = (int)getub(buf,71) & 0x0f;
+ clear_dop(&session->gpsdata.dop);
session->gpsdata.dop.hdop = getleuw(buf,66) * 0.1;
session->gpsdata.dop.vdop = getleuw(buf,68) * 0.1;
/* other DOP if available */