summaryrefslogtreecommitdiff
path: root/libgpsd_core.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2006-09-01 08:46:33 +0000
committerEric S. Raymond <esr@thyrsus.com>2006-09-01 08:46:33 +0000
commit900f4573bdf27516c492ca4a2a9d785460b52df9 (patch)
tree748af4e18e912e02e9cda83367c0bb9372058db4 /libgpsd_core.c
parent1ede19b00ca77d4d02d474ea88c97fd95b1fbd11 (diff)
downloadgpsd-900f4573bdf27516c492ca4a2a9d785460b52df9.tar.gz
Nailed a data-management bug.
The newdata member was not being properly cleared, which screwed up the error modeler in a way that only showed up on NMEA devices (not single-packet-per-cycle devices like SiRFs).
Diffstat (limited to 'libgpsd_core.c')
-rw-r--r--libgpsd_core.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libgpsd_core.c b/libgpsd_core.c
index 954d01f0..c8b131ea 100644
--- a/libgpsd_core.c
+++ b/libgpsd_core.c
@@ -495,6 +495,8 @@ gps_mask_t gpsd_poll(struct gps_device_t *session)
{
ssize_t newdata;
+ gps_clear_fix(&session->gpsdata.newdata);
+
if (session->inbuflen==0)
session->gpsdata.d_xmit_time = timestamp();