mirror of
https://github.com/onyx-and-iris/xair-api-python.git
synced 2026-02-15 02:07:48 +00:00
fixes bug with {Gate}.mode() setting incorrect values.
patch bump
This commit is contained in:
parent
ce4fccdc85
commit
669aba4cc4
@ -1,6 +1,6 @@
|
|||||||
[project]
|
[project]
|
||||||
name = "xair-api"
|
name = "xair-api"
|
||||||
version = "2.4.2"
|
version = "2.4.3"
|
||||||
description = "Remote control Behringer X-Air | Midas MR mixers through OSC"
|
description = "Remote control Behringer X-Air | Midas MR mixers through OSC"
|
||||||
authors = [{ name = "Onyx and Iris", email = "code@onyxandiris.online" }]
|
authors = [{ name = "Onyx and Iris", email = "code@onyxandiris.online" }]
|
||||||
license = { text = "MIT" }
|
license = { text = "MIT" }
|
||||||
|
|||||||
@ -118,12 +118,12 @@ class Gate:
|
|||||||
|
|
||||||
@property
|
@property
|
||||||
def mode(self) -> str:
|
def mode(self) -> str:
|
||||||
opts = ('gate', 'exp2', 'exp3', 'exp4', 'duck')
|
opts = ('exp2', 'exp3', 'exp4', 'gate', 'duck')
|
||||||
return opts[self.getter('mode')[0]]
|
return opts[self.getter('mode')[0]]
|
||||||
|
|
||||||
@mode.setter
|
@mode.setter
|
||||||
def mode(self, val: str):
|
def mode(self, val: str):
|
||||||
opts = ('gate', 'exp2', 'exp3', 'exp4', 'duck')
|
opts = ('exp2', 'exp3', 'exp4', 'gate', 'duck')
|
||||||
if val not in opts:
|
if val not in opts:
|
||||||
self.logger.warning(f'mode got {val}, expected one of {opts}')
|
self.logger.warning(f'mode got {val}, expected one of {opts}')
|
||||||
self.setter('mode', opts.index(val))
|
self.setter('mode', opts.index(val))
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user