GPS - Parse NMEA v2.2 and earlier VTG messages

pull/243/head
AvSquirrel 2016-02-11 03:03:53 +00:00
rodzic 211d3a29ed
commit a78b4d3e4d
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -642,7 +642,7 @@ func processNMEALine(l string) bool {
} else if (x[0] == "GNVTG") || (x[0] == "GPVTG") { // Ground track information.
mySituation.mu_GPS.Lock()
defer mySituation.mu_GPS.Unlock()
if len(x) < 10 {
if len(x) < 9 { // Reduce from 10 to 9 to allow parsing by devices pre-NMEA v2.3
return false
}
trueCourse := uint16(0)