summaryrefslogtreecommitdiff
path: root/libgpsd_core.c
diff options
context:
space:
mode:
Diffstat (limited to 'libgpsd_core.c')
-rw-r--r--libgpsd_core.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/libgpsd_core.c b/libgpsd_core.c
index 59bd622e..a98f5073 100644
--- a/libgpsd_core.c
+++ b/libgpsd_core.c
@@ -1050,7 +1050,9 @@ static void gpsd_error_model(struct gps_device_t *session)
}
}
- if (0 < deltatime && MODE_2D <= fix->mode) {
+ if (0 == isfinite(fix->epd) &&
+ 0 < deltatime &&
+ MODE_2D <= fix->mode) {
/*
* We compute a track error estimate solely from the
* position of this fix and the last one. The maximum