diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2009-09-03 10:16:43 +0000 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2009-09-03 10:16:43 +0000 |
commit | ff1a623dbdca3fa26de67d88739d9a039b8e39ea (patch) | |
tree | e5dd06d01abeba8e9210f65f79d4c19eeeb4cb94 /driver_garmin_txt.c | |
parent | d5755a55b8681c04ee0de3dc683124e581e47a9b (diff) | |
download | gpsd-ff1a623dbdca3fa26de67d88739d9a039b8e39ea.tar.gz |
Split eph into epx and epy internally...
...but still report eph by re-mixing them in the JSON dumper. This was
worth doing because all regression tests still pass, showing that
visible behavior for old-protocol users gas not changed.
Diffstat (limited to 'driver_garmin_txt.c')
-rw-r--r-- | driver_garmin_txt.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/driver_garmin_txt.c b/driver_garmin_txt.c index 55d3f00f..ea45ccac 100644 --- a/driver_garmin_txt.c +++ b/driver_garmin_txt.c @@ -379,7 +379,7 @@ gps_mask_t garmintxt_parse(struct gps_device_t *session) do { double eph; if (0 != gar_decode((char *) session->packet.outbuffer+31, 3, "", 1.0, &eph)) break; - session->gpsdata.fix.eph = eph * (GPSD_CONFIDENCE/CEP50_SIGMA); + session->gpsdata.fix.epx = session->gpsdata.fix.epy = eph * (GPSD_CONFIDENCE/CEP50_SIGMA); gpsd_report(LOG_PROG, "HERR [m]: %.1lf\n", eph); mask |= HERR_SET; } while (0); |