From 274f6120083cd186360e786387fb3804d892471b Mon Sep 17 00:00:00 2001 From: Nico Rey Date: Tue, 19 Oct 2021 12:02:21 +0200 Subject: [PATCH] plugins/gps: add some logging around the gps off exception --- pwnagotchi/plugins/default/gps.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pwnagotchi/plugins/default/gps.py b/pwnagotchi/plugins/default/gps.py index d068792d..888282d4 100644 --- a/pwnagotchi/plugins/default/gps.py +++ b/pwnagotchi/plugins/default/gps.py @@ -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")