From d8c52ecad9c91603ff946298a83fb523048a3a13 Mon Sep 17 00:00:00 2001 From: moimadmax Date: Thu, 22 Sep 2016 15:54:12 +0200 Subject: Add Parrot Zik 3 compatibility In my Zik 3 the Vendor Specific UUID is 8B6814D3-6CE7-4498-9700-9312C1711F64, so i've added it in the discovery loops. --- parrot_zik/bluetooth_paired_devices.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'parrot_zik') diff --git a/parrot_zik/bluetooth_paired_devices.py b/parrot_zik/bluetooth_paired_devices.py index 905819f..ba9ac9d 100644 --- a/parrot_zik/bluetooth_paired_devices.py +++ b/parrot_zik/bluetooth_paired_devices.py @@ -126,7 +126,8 @@ def connect(): name="Parrot RFcomm service", addr=mac) else: uuids = ["0ef0f502-f0ee-46c9-986c-54ed027807fb", - "8B6814D3-6CE7-4498-9700-9312C1711F63"] + "8B6814D3-6CE7-4498-9700-9312C1711F63", + "8B6814D3-6CE7-4498-9700-9312C1711F64"] service_matches = [] for uuid in uuids: try: -- cgit v1.2.1 From 26235b7fc9e2ac3c0c8a8934ac662c04cdc48130 Mon Sep 17 00:00:00 2001 From: moimadmax Date: Thu, 22 Sep 2016 16:06:35 +0200 Subject: Typo Noise Calcelation -> Cancelation Just a Typo in the menu string and variable name. --- parrot_zik/interface/version2.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'parrot_zik') diff --git a/parrot_zik/interface/version2.py b/parrot_zik/interface/version2.py index e6076ed..e3ad474 100644 --- a/parrot_zik/interface/version2.py +++ b/parrot_zik/interface/version2.py @@ -21,7 +21,7 @@ class ParrotZikVersion2Interface(ParrotZikBaseInterface): self.noise_cancelation.set_submenu(self.noise_cancelation_submenu) self.noise_control_cancelation_max = MenuItem( - "Max Calcelation", functools.partial( + "Max Cancelation", functools.partial( self.toggle_noise_cancelation, NoiseControlTypes.NOISE_CONTROL_MAX), checkitem=True) self.noise_control_cancelation_on = MenuItem( @@ -209,10 +209,10 @@ class ParrotZikVersion2Interface(ParrotZikBaseInterface): for angle, menu_item in angle_to_menuitem_map: menu_item.set_active(angle == active_angle) - def toggle_noise_cancelation(self, noise_calcelation, widget): + def toggle_noise_cancelation(self, noise_cancelation, widget): try: if not self.noise_cancelation_dirty: - self.parrot.noise_control = noise_calcelation + self.parrot.noise_control = noise_cancelation self.noise_cancelation_dirty = True self._read_noise_cancelation() self.noise_cancelation_dirty = False -- cgit v1.2.1