mirror of
https://github.com/bettercap/bettercap
synced 2025-07-10 23:33:28 -07:00
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:
parent
9a20e54b28
commit
dd9f689df1
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue