summaryrefslogtreecommitdiff
path: root/gpsutils.c
diff options
context:
space:
mode:
authorGary E. Miller <gem@rellim.com>2018-02-12 15:05:35 -0800
committerGary E. Miller <gem@rellim.com>2018-02-12 15:05:35 -0800
commit74d442015a5066701b9513a27b78db373fa531cd (patch)
treea6f6afd9d7bf618be4eb2c487102da372a8a86ce /gpsutils.c
parentb2ba8d5ade0f9d55c2b51ca41d9c9604662452ad (diff)
downloadgpsd-74d442015a5066701b9513a27b78db373fa531cd.tar.gz
ECEF: remove unused and unneeded ecef.valid.
Gotta check each value for isfinite() anyway.
Diffstat (limited to 'gpsutils.c')
-rw-r--r--gpsutils.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/gpsutils.c b/gpsutils.c
index 09f0112d..396d24cb 100644
--- a/gpsutils.c
+++ b/gpsutils.c
@@ -303,14 +303,12 @@ void gps_merge_fix(struct gps_fix_t *to,
if ((transfer & SPEEDERR_SET) != 0)
to->eps = from->eps;
if ((transfer & ECEF_SET) != 0) {
- to->ecef.valid = true;
to->ecef.x = from->ecef.x;
to->ecef.y = from->ecef.y;
to->ecef.z = from->ecef.z;
to->ecef.pAcc = from->ecef.pAcc;
}
if ((transfer & VECEF_SET) != 0) {
- to->ecef.valid = true;
to->ecef.vx = from->ecef.vx;
to->ecef.vy = from->ecef.vy;
to->ecef.vz = from->ecef.vz;