Last vehicle in GPGSV string not parsed

This commit is contained in:
Morten Nielsen 2017-05-09 12:17:04 -07:00 committed by GitHub
parent 7b7cafdbfb
commit 591c532920

View file

@ -45,7 +45,7 @@ namespace NmeaParser.Nmea.Gps
SVsInView = int.Parse(message[2], CultureInfo.InvariantCulture);
List<SatelliteVehicle> svs = new List<SatelliteVehicle>();
for (int i = 3; i < message.Length - 4; i += 4)
for (int i = 3; i < message.Length - 3; i += 4)
{
if (message[i].Length == 0)
continue;