summaryrefslogtreecommitdiff
path: root/driver_nmea0183.c
diff options
context:
space:
mode:
authorGary E. Miller <gem@rellim.com>2019-03-15 11:50:36 -0700
committerGary E. Miller <gem@rellim.com>2019-03-15 11:50:36 -0700
commitaf1104274a405f97095caa0897b236d6c913f171 (patch)
tree4b7c8214f4a2cc58ea2b1baaca8e510106e1ee77 /driver_nmea0183.c
parent31c60376876a5a2317a4a1db9dcc03a93d234134 (diff)
downloadgpsd-af1104274a405f97095caa0897b236d6c913f171.tar.gz
Move epe from gps_data_t to be near its friends in gps_fix_t.
No functional changes. Looks like epe never went anywhere...
Diffstat (limited to 'driver_nmea0183.c')
-rw-r--r--driver_nmea0183.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/driver_nmea0183.c b/driver_nmea0183.c
index 73758139..62c12288 100644
--- a/driver_nmea0183.c
+++ b/driver_nmea0183.c
@@ -1350,11 +1350,9 @@ static gps_mask_t processPGRME(int c UNUSED, char *field[],
*/
gps_mask_t mask = ONLINE_SET;
- if ((strcmp(field[2], "M") != 0) ||
- (strcmp(field[4], "M") != 0) || (strcmp(field[6], "M") != 0)) {
- session->newdata.epx =
- session->newdata.epy =
- session->newdata.epv = session->gpsdata.epe = 100;
+ if ('M' != field[2][0] ||
+ 'M' != field[4][0] ||
+ 'M' != field[6][0]) {
mask = ONLINE_SET;
} else {
session->newdata.epx = session->newdata.epy =
@@ -1362,7 +1360,7 @@ static gps_mask_t processPGRME(int c UNUSED, char *field[],
* (GPSD_CONFIDENCE / CEP50_SIGMA);
session->newdata.epv =
safe_atof(field[3]) * (GPSD_CONFIDENCE / CEP50_SIGMA);
- session->gpsdata.epe =
+ session->newdata.epe =
safe_atof(field[5]) * (GPSD_CONFIDENCE / CEP50_SIGMA);
mask = HERR_SET | VERR_SET | PERR_IS;
}