summaryrefslogtreecommitdiff
path: root/driver_nmea.c
diff options
context:
space:
mode:
authorGary E. Miller <gem@rellim.com>2010-10-26 16:55:12 -0700
committerGary E. Miller <gem@rellim.com>2010-10-26 16:55:12 -0700
commit1c769d92f806df4b892fcef41ae67c40fc3c9054 (patch)
treec9628c5424b498421201f6b44ccbbd9c59a6a399 /driver_nmea.c
parente443e415cf0ffde23f01264d759a6b97988c4365 (diff)
downloadgpsd-1c769d92f806df4b892fcef41ae67c40fc3c9054.tar.gz
Add some more error logging for GPGSV.
Sats still not showing for HP 58534A GPS.
Diffstat (limited to 'driver_nmea.c')
-rw-r--r--driver_nmea.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/driver_nmea.c b/driver_nmea.c
index cc001a81..7155d6b7 100644
--- a/driver_nmea.c
+++ b/driver_nmea.c
@@ -476,6 +476,8 @@ static gps_mask_t processGPGSV(int count, char *field[],
*/
int n, fldnum;
if (count <= 3) {
+ gpsd_report(LOG_WARN, "malformed GPGSV - fieldcount %d <= 3\n",
+ count);
gpsd_zero_satellites(&session->gpsdata);
session->gpsdata.satellites_visible = 0;
return 0;
@@ -490,6 +492,7 @@ static gps_mask_t processGPGSV(int count, char *field[],
session->driver.nmea.await = atoi(field[1]);
if (sscanf(field[2], "%d", &session->driver.nmea.part) < 1) {
+ gpsd_report(LOG_WARN, "malformed GPGSV - bad part\n");
gpsd_zero_satellites(&session->gpsdata);
return 0;
} else if (session->driver.nmea.part == 1)