diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2006-09-01 09:28:57 +0000 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2006-09-01 09:28:57 +0000 |
commit | 1f93f673598accfa3d94423d3edc4e7617f46e75 (patch) | |
tree | 08ab498443665b15332e3e42fc65484c119fc2fd /gpsd.c | |
parent | 900f4573bdf27516c492ca4a2a9d785460b52df9 (diff) | |
download | gpsd-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.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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 */ |