Open ipsusila opened 2 years ago
I tested GPS driver/parser and it's trigger panic, due to index out of range. The problem is in the gpsparse.go line 103. It should be written as
index out of range
ms, _ := strconv.ParseInt(val[7:9], 10, 16)
since the length of NMEA time field (hhmmss.ss) is 9 bytes.
hhmmss.ss
Putu
Sorry about the slow response @ipsusila I think you are correct! Would you be able to submit a PR with the correction?
I tested GPS driver/parser and it's trigger panic, due to
index out of range
. The problem is in the gpsparse.go line 103. It should be written assince the length of NMEA time field (
hhmmss.ss
) is 9 bytes.Putu