diff options
author | Marek Siarkowicz <mareksiarkowicz@gmail.com> | 2015-06-12 15:15:44 +0200 |
---|---|---|
committer | Marek Siarkowicz <mareksiarkowicz@gmail.com> | 2015-06-12 15:15:44 +0200 |
commit | 0d692102cd94f70e78cf036cb9f64c485ea8b6a5 (patch) | |
tree | 5099b8f97849d7d28cba74c6cac1d7eb2d139887 /BluetoothPairedDevices.py | |
parent | cac2d834faa85153fba2fca3c7faa1de34183b4d (diff) | |
download | pyParrotZikTCP-0d692102cd94f70e78cf036cb9f64c485ea8b6a5.tar.xz pyParrotZikTCP-0d692102cd94f70e78cf036cb9f64c485ea8b6a5.zip |
Add Zik 2.0 compatibility.
Diffstat (limited to '')
-rw-r--r-- | BluetoothPairedDevices.py | 3 |
1 files changed, 2 insertions, 1 deletions
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) |