From af1104274a405f97095caa0897b236d6c913f171 Mon Sep 17 00:00:00 2001 From: "Gary E. Miller" Date: Fri, 15 Mar 2019 11:50:36 -0700 Subject: Move epe from gps_data_t to be near its friends in gps_fix_t. No functional changes. Looks like epe never went anywhere... --- driver_nmea0183.c | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'driver_nmea0183.c') 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; } -- cgit v1.2.1