From a2bb66ad57d54bc7380e9edd90d3df1abaffbc42 Mon Sep 17 00:00:00 2001 From: dadav <33197631+dadav@users.noreply.github.com> Date: Fri, 1 Nov 2019 20:12:04 +0100 Subject: [PATCH] Fix case --- pwnagotchi/plugins/default/bt-tether.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pwnagotchi/plugins/default/bt-tether.py b/pwnagotchi/plugins/default/bt-tether.py index 5ce0d0db..4665fb80 100644 --- a/pwnagotchi/plugins/default/bt-tether.py +++ b/pwnagotchi/plugins/default/bt-tether.py @@ -122,7 +122,7 @@ class BTNap: device = ifaces.get(BTNap.IFACE_DEV) if device is None: continue - if str(device['Address']) == device_address and path.startswith(path_prefix): + if str(device['Address']).lower() == device_address.lower() and path.startswith(path_prefix): obj = bus.get_object(BTNap.IFACE_BASE, path) return dbus.Interface(obj, BTNap.IFACE_DEV) raise BTError('Bluetooth device not found')