mirror of
https://github.com/evilsocket/pwnagotchi.git
synced 2026-01-23 02:24:15 +00:00
Merge pull request #1042 from reynico/better-error-message-gps
plugins/gps: add some logging around the gps off exception
This commit is contained in:
commit
74ae3c5d0d
1 changed files with 2 additions and 0 deletions
|
|
@ -32,11 +32,13 @@ class GPS(plugins.Plugin):
|
|||
try:
|
||||
agent.run("gps off")
|
||||
except Exception:
|
||||
logging.info(f"bettercap gps module was already off")
|
||||
pass
|
||||
|
||||
agent.run(f"set gps.device {self.options['device']}")
|
||||
agent.run(f"set gps.baudrate {self.options['speed']}")
|
||||
agent.run("gps on")
|
||||
logging.info(f"bettercap gps module enabled on {self.options['device']}")
|
||||
self.running = True
|
||||
else:
|
||||
logging.warning("no GPS detected")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue