diff options
-rw-r--r-- | driver_nmea0183.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/driver_nmea0183.c b/driver_nmea0183.c index 5305806a..80944e63 100644 --- a/driver_nmea0183.c +++ b/driver_nmea0183.c @@ -681,7 +681,6 @@ static gps_mask_t processGSV(int count, char *field[], * 083 Azimuth, degrees * 46 Signal-to-noise ratio in decibels * <repeat for up to 4 satellites per sentence> - * There my be up to three GSV sentences in a data packet * * Can occur with talker IDs: * BD (Beidou), @@ -764,7 +763,7 @@ static gps_mask_t processGSV(int count, char *field[], session->nmea.seen_qzss = true; } - for (fldnum = 4; fldnum < count;) { + for (fldnum = 4; fldnum < count / 4 * 4;) { struct satellite_t *sp; if (session->gpsdata.satellites_visible >= MAXCHANNELS) { gpsd_log(&session->context->errout, LOG_ERROR, |