From ef717734af8be94b77ef00a3029752f24000bc2d Mon Sep 17 00:00:00 2001 From: scifijunkie Date: Tue, 26 Apr 2022 09:46:19 -0500 Subject: [PATCH] plugins/gps: add some logging around the gps off exception #1042. Incorporated changes from reynico/pwnagotchi on Github. --- 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 d068792..888282d 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")