summaryrefslogtreecommitdiff
path: root/libgpsd_core.c
diff options
context:
space:
mode:
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 =