kopia lustrzana https://github.com/cyoung/stratux
more robust NMEA parsing for unexpected SoftRF configs (GDL90+NMEA on serial port
rodzic
6d740a36ad
commit
dd1dae0389
|
@ -2123,6 +2123,11 @@ func gpsSerialReader() {
|
|||
}
|
||||
|
||||
s := scanner.Text()
|
||||
startIdx := strings.Index(s, "$")
|
||||
if startIdx < 0 {
|
||||
continue
|
||||
}
|
||||
s = s[startIdx:]
|
||||
|
||||
if !processNMEALine(s) {
|
||||
if globalSettings.DEBUG {
|
||||
|
|
Ładowanie…
Reference in New Issue