diff options
author | Gary E. Miller <gem@rellim.com> | 2019-03-15 11:50:36 -0700 |
---|---|---|
committer | Gary E. Miller <gem@rellim.com> | 2019-03-15 11:50:36 -0700 |
commit | af1104274a405f97095caa0897b236d6c913f171 (patch) | |
tree | 4b7c8214f4a2cc58ea2b1baaca8e510106e1ee77 /gpsutils.c | |
parent | 31c60376876a5a2317a4a1db9dcc03a93d234134 (diff) | |
download | gpsd-af1104274a405f97095caa0897b236d6c913f171.tar.gz |
Move epe from gps_data_t to be near its friends in gps_fix_t.
No functional changes. Looks like epe never went anywhere...
Diffstat (limited to 'gpsutils.c')
-rw-r--r-- | gpsutils.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -262,6 +262,7 @@ void gps_clear_fix(struct gps_fix_t *fixp) fixp->epd = NAN; fixp->eps = NAN; fixp->epc = NAN; + fixp->epe = NAN; /* clear ECEF too */ fixp->ecef.x = NAN; fixp->ecef.y = NAN; @@ -338,6 +339,9 @@ void gps_merge_fix(struct gps_fix_t *to, if (0 != isfinite(from->epd)) { to->epd = from->epd; } + if (0 != isfinite(from->epe)) { + to->epe = from->epe; + } if ((transfer & VERR_SET) != 0) to->epv = from->epv; if ((transfer & SPEEDERR_SET) != 0) |