summaryrefslogtreecommitdiff
path: root/gpsd.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2006-09-01 09:28:57 +0000
committerEric S. Raymond <esr@thyrsus.com>2006-09-01 09:28:57 +0000
commit1f93f673598accfa3d94423d3edc4e7617f46e75 (patch)
tree08ab498443665b15332e3e42fc65484c119fc2fd /gpsd.c
parent900f4573bdf27516c492ca4a2a9d785460b52df9 (diff)
downloadgpsd-1f93f673598accfa3d94423d3edc4e7617f46e75.tar.gz
Yet another minor data-management bug.
Error estimates for PGRME must be computed from newdata, not the merged fix.
Diffstat (limited to 'gpsd.c')
-rw-r--r--gpsd.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/gpsd.c b/gpsd.c
index 8b70e026..0011a952 100644
--- a/gpsd.c
+++ b/gpsd.c
@@ -1552,6 +1552,9 @@ int main(int argc, char *argv[])
{
gpsd_report(5, "polling %d\n", channel->gpsdata.gps_fd);
changed = gpsd_poll(channel);
+#ifdef WIRED_POLICY
+ gpsd_error_model(channel, &channel->gpsdata.fix);
+#endif /* WIRED_POLICY */
if (changed == ERROR_SET) {
gpsd_report(3, "packet sniffer failed to sync up\n");
FD_CLR(channel->gpsdata.gps_fd, &all_fds);
@@ -1591,6 +1594,7 @@ int main(int argc, char *argv[])
}
//printf("After policy: %s\n", gps_show_transfer(gps_valid_fields(&sub->fixbuffer)));
}
+ gpsd_error_model(sub->device, &sub->fixbuffer);
}
}
#endif /* WIRED_POLICY */