From c1231057dc39252fbd5eb243cb30f25ce6db9c95 Mon Sep 17 00:00:00 2001 From: "Gary E. Miller" Date: Thu, 25 Oct 2018 13:30:47 -0700 Subject: driver_nmea0183: Fix off by one error in $GLGSV decode. --- driver_nmea0183.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'driver_nmea0183.c') diff --git a/driver_nmea0183.c b/driver_nmea0183.c index 74bd42c5..cdbef44e 100644 --- a/driver_nmea0183.c +++ b/driver_nmea0183.c @@ -637,7 +637,7 @@ static int nmeaid_to_prn(char *talker, int satnum, unsigned char *gnssid, } else if (65 <= satnum && 96 >= satnum) { /* GLONASS */ *gnssid = 6; - *svid = satnum - 65; + *svid = satnum - 64; } else if (120 <= satnum && 158 >= satnum) { /* SBAS */ *gnssid = 1; -- cgit v1.2.1