summaryrefslogtreecommitdiff
path: root/geoid.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2017-09-06 16:11:35 -0400
committerEric S. Raymond <esr@thyrsus.com>2017-09-06 16:11:35 -0400
commitcd2ecf6919b9c8f43d5c39bf4fd96a95476c01bd (patch)
treea5681a575f04b389205555b91e55ed412986dc2e /geoid.c
parentc369d5418e87817996f6aa8e773e48a33bb9c719 (diff)
downloadgpsd-cd2ecf6919b9c8f43d5c39bf4fd96a95476c01bd.tar.gz
Fix a cut and paste error found by Coverity.
Diffstat (limited to 'geoid.c')
-rw-r--r--geoid.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/geoid.c b/geoid.c
index 5d708af2..c0523297 100644
--- a/geoid.c
+++ b/geoid.c
@@ -136,7 +136,7 @@ void ecef_to_wgs84fix(struct gps_fix_t *fix, double *separation,
/* sanity check the speed, 10,000 m/s should be a nice max */
if ( 9999.9 < fix->speed )
fix->speed = NAN;
- else if ( -9999.9 > fix->speed )
+ else if ( -9999.9 > fix->climb )
fix->speed = NAN;
heading = atan2(fix_minuz(veast), fix_minuz(vnorth));