diff options
author | Gary E. Miller <gem@rellim.com> | 2019-03-25 16:48:25 -0700 |
---|---|---|
committer | Gary E. Miller <gem@rellim.com> | 2019-03-25 16:48:25 -0700 |
commit | ee37b0ec95ddda2d744687246c7cf6337211aecd (patch) | |
tree | 84fdec787eb1ebb29223212aaf1720234397772d /driver_nmea0183.c | |
parent | 1bc06df9cb9ee58c6497311ae14aad50f9bc69d9 (diff) | |
download | gpsd-ee37b0ec95ddda2d744687246c7cf6337211aecd.tar.gz |
driver_nmea0183: Tweak $PSRFEPE. No regressions changes.
Better log output. Keep time, even if invalid.
Diffstat (limited to 'driver_nmea0183.c')
-rw-r--r-- | driver_nmea0183.c | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/driver_nmea0183.c b/driver_nmea0183.c index 542860f8..7732c089 100644 --- a/driver_nmea0183.c +++ b/driver_nmea0183.c @@ -1532,10 +1532,7 @@ static gps_mask_t processPSRFEPE(int c UNUSED, char *field[], */ gps_mask_t mask = STATUS_SET; - if ('A' != field[2][0]) { - /* Huh? */ - return mask; - } + /* get time/ valid or not */ if ('\0' != field[1][0]) { if (0 == merge_hhmmss(field[1], session)) { register_fractional_time(field[0], field[1], session); @@ -1548,6 +1545,10 @@ static gps_mask_t processPSRFEPE(int c UNUSED, char *field[], } } } + if ('A' != field[2][0]) { + /* Huh? */ + return mask; + } if ('\0' != field[3][0]) { /* This adds nothing, it just agrees with the gpsd calculation @@ -1576,8 +1577,10 @@ static gps_mask_t processPSRFEPE(int c UNUSED, char *field[], } gpsd_log(&session->context->errout, LOG_PROG, - "PSRFEPE: hdop=%.1f eps=%.1f epd=%.1f\n", + "PSRFEPE: hdop=%.1f eph=%.1f epv=%.1f eps=%.1f epd=%.1f\n", session->gpsdata.dop.hdop, + session->newdata.eph, + session->newdata.epv, session->newdata.eps, session->newdata.epd); return mask; |