summaryrefslogtreecommitdiff
path: root/driver_nmea0183.c
diff options
context:
space:
mode:
Diffstat (limited to 'driver_nmea0183.c')
-rw-r--r--driver_nmea0183.c13
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;