summaryrefslogtreecommitdiff
path: root/driver_nmea0183.c
diff options
context:
space:
mode:
authorGary E. Miller <gem@rellim.com>2017-01-09 13:51:51 -0800
committerGary E. Miller <gem@rellim.com>2017-01-09 13:51:51 -0800
commit7bc5e8c1a2ffb49afc1e75bf699a643687713e12 (patch)
tree3f4fb64e5fcb2fa4bdcbae8c88486b9c31c7f9ec /driver_nmea0183.c
parent7cbd00b1d7c63e8795bbbc411993c939f0031f93 (diff)
downloadgpsd-7bc5e8c1a2ffb49afc1e75bf699a643687713e12.tar.gz
nmea 0183: fix TDOP only compuetd once at startup.
Gotta clear the computed DOPs so that fill_dop() will recompute them. I suspect this is the tipo of the iceberg.
Diffstat (limited to 'driver_nmea0183.c')
-rw-r--r--driver_nmea0183.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/driver_nmea0183.c b/driver_nmea0183.c
index 494ec1f4..ba1969c7 100644
--- a/driver_nmea0183.c
+++ b/driver_nmea0183.c
@@ -617,6 +617,8 @@ static gps_mask_t processGSA(int count, char *field[],
session->gpsdata.dop.hdop = safe_atof(field[16]);
if (field[17][0] != '\0')
session->gpsdata.dop.vdop = safe_atof(field[17]);
+ /* clear computed DOPs so they get recomputed. */
+ session->gpsdata.dop.tdop = NAN;
/*
* might have gone from GPGSA to GLGSA/BDGSA
* or GNGSA to GNGSA