summaryrefslogtreecommitdiff
path: root/libgpsd_core.c
diff options
context:
space:
mode:
authorGary E. Miller <gem@rellim.com>2019-03-13 16:03:07 -0700
committerGary E. Miller <gem@rellim.com>2019-03-13 16:03:07 -0700
commitea906e922acc6aeb98f28e1501542c10e7ba621f (patch)
treea52df344c9d68bf80386e57dc6d73e41112a78ed /libgpsd_core.c
parent21e5566f79ad82cb018fbde2f765530b85420302 (diff)
downloadgpsd-ea906e922acc6aeb98f28e1501542c10e7ba621f.tar.gz
driver_nmea0183 and more: Decode $PSRFEPE add eps.
Turns out eps also came from other GPS, but never made it to TPV. Regressions changed to show new eps data.
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) {