aboutsummaryrefslogtreecommitdiff
path: root/parrot_zik/model
diff options
context:
space:
mode:
authorMarek Siarkowicz <mareksiarkowicz@gmail.com>2016-02-05 13:55:17 +0100
committerMarek Siarkowicz <mareksiarkowicz@gmail.com>2016-02-05 13:55:17 +0100
commit92e47683fc783a2dbd3d9737af40eb0b3372af61 (patch)
treea9cb773685d4e178db90a30b3926faaa85a7cd71 /parrot_zik/model
parent19cafba037f55fa962e5819950cb1b1f7332180e (diff)
parentd6e3eb4ffb88959503cf41870dab72446ace6b46 (diff)
downloadpyParrotZikTCP-92e47683fc783a2dbd3d9737af40eb0b3372af61.tar.xz
pyParrotZikTCP-92e47683fc783a2dbd3d9737af40eb0b3372af61.zip
Merge pull request #7 from PsycheEYE/noisecontrol
Added functionality to change noise cancellation mode
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: