From ee37b0ec95ddda2d744687246c7cf6337211aecd Mon Sep 17 00:00:00 2001 From: "Gary E. Miller" Date: Mon, 25 Mar 2019 16:48:25 -0700 Subject: driver_nmea0183: Tweak $PSRFEPE. No regressions changes. Better log output. Keep time, even if invalid. --- driver_nmea0183.c | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) (limited to 'driver_nmea0183.c') 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; -- cgit v1.2.1