summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--driver_nmea0183.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/driver_nmea0183.c b/driver_nmea0183.c
index 828f1b2d..9359c089 100644
--- a/driver_nmea0183.c
+++ b/driver_nmea0183.c
@@ -571,13 +571,9 @@ static gps_mask_t processGPGSV(int count, char *field[],
}
session->gpsdata.PRN[session->gpsdata.satellites_visible] =
atoi(field[fldnum++]);
- /*
- * NMEA-ID (33..64) to SBAS PRN.
- * Check SBAS_PRN(NMEA-ID) is required because some GPSes sends RPN instead of NMEA-ID.
- */
+ // NMEA-ID (33..64) to SBAS PRN.
if (session->gpsdata.PRN[session->gpsdata.satellites_visible] >= 33
- && session->gpsdata.PRN[session->gpsdata.satellites_visible] <= 64
- && !SBAS_PRN(session->gpsdata.PRN[session->gpsdata.satellites_visible]))
+ && session->gpsdata.PRN[session->gpsdata.satellites_visible] <= 64)
session->gpsdata.PRN[session->gpsdata.satellites_visible] += 87;
session->gpsdata.elevation[session->gpsdata.satellites_visible] =
atoi(field[fldnum++]);