mirror of
https://github.com/bettercap/bettercap
synced 2025-08-13 02:06:57 -07:00
misc: small fix or general refactoring i did not bother commenting
This commit is contained in:
parent
1eec682aeb
commit
5fb4cd6a5a
1 changed files with 2 additions and 0 deletions
|
@ -126,6 +126,8 @@ func (mod *GPS) Start() error {
|
|||
return mod.SetRunning(true, func() {
|
||||
defer mod.serial.Close()
|
||||
|
||||
mod.Info("started on port %s ...", mod.serialPort)
|
||||
|
||||
for mod.Running() {
|
||||
if line, err := mod.readLine(); err == nil {
|
||||
if s, err := nmea.Parse(line); err == nil {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue