summaryrefslogtreecommitdiff
path: root/driver_italk.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2009-09-03 10:16:43 +0000
committerEric S. Raymond <esr@thyrsus.com>2009-09-03 10:16:43 +0000
commitff1a623dbdca3fa26de67d88739d9a039b8e39ea (patch)
treee5dd06d01abeba8e9210f65f79d4c19eeeb4cb94 /driver_italk.c
parentd5755a55b8681c04ee0de3dc683124e581e47a9b (diff)
downloadgpsd-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_italk.c')
-rw-r--r--driver_italk.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/driver_italk.c b/driver_italk.c
index 6bf17445..76a8f150 100644
--- a/driver_italk.c
+++ b/driver_italk.c
@@ -66,7 +66,7 @@ static gps_mask_t decode_itk_navfix(struct gps_device_t *session, unsigned char
evz = (double)(getlesl(buf, 7 + 194)/1000.0);
ecef_to_wgs84fix(&session->gpsdata, epx, epy, epz, evx, evy, evz);
mask |= LATLON_SET | ALTITUDE_SET | SPEED_SET | TRACK_SET | CLIMB_SET ;
- session->gpsdata.fix.eph = (double)(getlesl(buf, 7 + 252)/100.0);
+ session->gpsdata.fix.epx = session->gpsdata.fix.epy = (double)(getlesl(buf, 7 + 252)/100.0);
session->gpsdata.fix.eps = (double)(getlesl(buf, 7 + 254)/100.0);
#define MAX(a,b) (((a) > (b)) ? (a) : (b))