aboutsummaryrefslogtreecommitdiff
path: root/parrot_zik/model
diff options
context:
space:
mode:
authorPavel Salomatov <pavel.salomatov@yotadevices.com>2016-02-05 15:41:47 +0300
committerPavel Salomatov <pavel.salomatov@yotadevices.com>2016-02-05 15:41:47 +0300
commitd6e3eb4ffb88959503cf41870dab72446ace6b46 (patch)
tree352c8c791b70c02275328edfecfbf53a1e552af2 /parrot_zik/model
parent0f18e76062340a6beda2142ccaedccad09cd5193 (diff)
downloadpyParrotZikTCP-d6e3eb4ffb88959503cf41870dab72446ace6b46.tar.xz
pyParrotZikTCP-d6e3eb4ffb88959503cf41870dab72446ace6b46.zip
Added functionality to change noise cancellation mode
"Head detection" now initializes on startup
Diffstat (limited to 'parrot_zik/model')
-rw-r--r--parrot_zik/model/version2.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/parrot_zik/model/version2.py b/parrot_zik/model/version2.py
index 11b4d51..0cbdc1a 100644
--- a/parrot_zik/model/version2.py
+++ b/parrot_zik/model/version2.py
@@ -73,7 +73,7 @@ class ParrotZikVersion2(ParrotZikBase):
@noise_control.setter
def noise_control(self, arg):
- pass
+ self.resource_manager.set('/api/audio/noise_control', arg)
@property
def noise_control_enabled(self):
@@ -103,7 +103,7 @@ class NoiseControl(object):
return self.type == other.type and self.value == other.value
def __str__(self):
- return '{}++{}'.format(self.type, self.value)
+ return '{}&value={}'.format(self.type, self.value)
class NoiseControlTypes: