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, 2 insertions, 2 deletions
diff --git a/libgpsd_core.c b/libgpsd_core.c
index a98f5073..d3099624 100644
--- a/libgpsd_core.c
+++ b/libgpsd_core.c
@@ -1036,8 +1036,8 @@ static void gpsd_error_model(struct gps_device_t *session)
0 != isfinite(oldfix->epy)) {
fix->eps = (EMIX(oldfix->epx, oldfix->epy) +
EMIX(fix->epx, fix->epy)) / deltatime;
- } else
- fix->eps = NAN;
+ }
+ /* else, leave as NAN */
}
if (0 < deltatime && MODE_3D <= fix->mode) {