mirror of
https://github.com/bettercap/bettercap
synced 2025-07-30 11:40:33 -07:00
Merge pull request #200 from geoffgarside/fix-go-nmea
Fix compatibility with github.com/adrianmo/go-nmea#13
This commit is contained in:
commit
e5f598b274
1 changed files with 1 additions and 1 deletions
|
@ -130,7 +130,7 @@ func (gps *GPS) Start() error {
|
|||
for gps.Running() {
|
||||
if line, err := gps.readLine(); err == nil {
|
||||
if info, err := nmea.Parse(line); err == nil {
|
||||
s := info.GetSentence()
|
||||
s := info.Sentence()
|
||||
// http://aprs.gids.nl/nmea/#gga
|
||||
if s.Type == "GNGGA" {
|
||||
gps.Session.GPS = info.(nmea.GNGGA)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue