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_evermore.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_evermore.c')
-rw-r--r-- | driver_evermore.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/driver_evermore.c b/driver_evermore.c index 1227d5ec..726086b8 100644 --- a/driver_evermore.c +++ b/driver_evermore.c @@ -222,6 +222,7 @@ gps_mask_t evermore_parse(struct gps_device_t *session, unsigned char *buf, size case 0x04: /* DOP Data Output */ session->gpsdata.fix.time = session->gpsdata.sentence_time = gpstime_to_unix((int)getleuw(buf2, 2), getleul(buf2, 4)*0.01) - session->context->leap_seconds; + clear_dop(&session->gpsdata.dop); session->gpsdata.dop.gdop = (double)getub(buf2, 8)*0.1; session->gpsdata.dop.pdop = (double)getub(buf2, 9)*0.1; session->gpsdata.dop.hdop = (double)getub(buf2, 10)*0.1; |