diff options
author | Gary E. Miller <gem@rellim.com> | 2019-03-15 11:50:36 -0700 |
---|---|---|
committer | Gary E. Miller <gem@rellim.com> | 2019-03-15 11:50:36 -0700 |
commit | af1104274a405f97095caa0897b236d6c913f171 (patch) | |
tree | 4b7c8214f4a2cc58ea2b1baaca8e510106e1ee77 /driver_nmea0183.c | |
parent | 31c60376876a5a2317a4a1db9dcc03a93d234134 (diff) | |
download | gpsd-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.c | 10 |
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; } |