From 0d692102cd94f70e78cf036cb9f64c485ea8b6a5 Mon Sep 17 00:00:00 2001 From: Marek Siarkowicz Date: Fri, 12 Jun 2015 15:15:44 +0200 Subject: Add Zik 2.0 compatibility. --- BluetoothPairedDevices.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'BluetoothPairedDevices.py') diff --git a/BluetoothPairedDevices.py b/BluetoothPairedDevices.py index 4190159..aa5b056 100644 --- a/BluetoothPairedDevices.py +++ b/BluetoothPairedDevices.py @@ -9,7 +9,8 @@ elif sys.platform == "win32": def ParrotZikMac(): - p = re.compile('90:03:[0-9A-Fa-f]{2}:[0-9A-Fa-f]{2}:[0-9A-Fa-f]{2}:[0-9A-Fa-f]{2}') + p = re.compile('90:03:[0-9A-Fa-f]{2}:[0-9A-Fa-f]{2}:[0-9A-Fa-f]{2}:[0-9A-Fa-f]{2}|' + 'A0:14:[0-9A-Fa-f]{2}:[0-9A-Fa-f]{2}:[0-9A-Fa-f]{2}:[0-9A-Fa-f]{2}') if sys.platform == "linux2": out = os.popen("bluez-test-device list").read() res = p.findall(out) -- cgit v1.2.1