summaryrefslogtreecommitdiff
path: root/libgpsd_core.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2015-03-16 10:37:30 -0400
committerEric S. Raymond <esr@thyrsus.com>2015-03-16 20:08:57 -0400
commitfd82eae863dc165789c0dba599bdd2c89173e754 (patch)
tree089245dcacfb4eb3867a26a26a77993ac52a364b /libgpsd_core.c
parent85a4f95b6ee7ad0e21e2444ded91813888b03212 (diff)
downloadgpsd-fd82eae863dc165789c0dba599bdd2c89173e754.tar.gz
Fix tiny error that might prevent speed computation.
All regression tests pass.
Diffstat (limited to 'libgpsd_core.c')
-rw-r--r--libgpsd_core.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libgpsd_core.c b/libgpsd_core.c
index 35510668..e618650e 100644
--- a/libgpsd_core.c
+++ b/libgpsd_core.c
@@ -953,7 +953,7 @@ static void gpsd_error_model(struct gps_device_t *session,
if (isnan(fix->eps) != 0) {
if (oldfix->mode > MODE_NO_FIX && fix->mode > MODE_NO_FIX
&& isnan(oldfix->epx) == 0 && isnan(oldfix->epy) == 0
- && isnan(oldfix->time) == 0 && isnan(oldfix->time) == 0
+ && isnan(oldfix->time) == 0 && isnan(fix->time) == 0
&& fix->time > oldfix->time) {
timestamp_t t = fix->time - oldfix->time;
double e =