Fix compatibility with github.com/adrianmo/go-nmea#13

So far only the compile issue has been resolved. No investigation has been performed into the behaviour of the gps module.
This commit is contained in:
Geoff Garside 2018-03-22 06:44:54 +00:00
parent 9a20e54b28
commit dd9f689df1

View file

@ -130,7 +130,7 @@ func (gps *GPS) Start() error {
for gps.Running() { for gps.Running() {
if line, err := gps.readLine(); err == nil { if line, err := gps.readLine(); err == nil {
if info, err := nmea.Parse(line); err == nil { if info, err := nmea.Parse(line); err == nil {
s := info.GetSentence() s := info.Sentence()
// http://aprs.gids.nl/nmea/#gga // http://aprs.gids.nl/nmea/#gga
if s.Type == "GNGGA" { if s.Type == "GNGGA" {
gps.Session.GPS = info.(nmea.GNGGA) gps.Session.GPS = info.(nmea.GNGGA)