mirror of
https://github.com/onyx-and-iris/xair-api-python.git
synced 2026-02-14 17:57:47 +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]
|
||||
name = "xair-api"
|
||||
version = "2.4.2"
|
||||
version = "2.4.3"
|
||||
description = "Remote control Behringer X-Air | Midas MR mixers through OSC"
|
||||
authors = [{ name = "Onyx and Iris", email = "code@onyxandiris.online" }]
|
||||
license = { text = "MIT" }
|
||||
|
||||
@ -118,12 +118,12 @@ class Gate:
|
||||
|
||||
@property
|
||||
def mode(self) -> str:
|
||||
opts = ('gate', 'exp2', 'exp3', 'exp4', 'duck')
|
||||
opts = ('exp2', 'exp3', 'exp4', 'gate', 'duck')
|
||||
return opts[self.getter('mode')[0]]
|
||||
|
||||
@mode.setter
|
||||
def mode(self, val: str):
|
||||
opts = ('gate', 'exp2', 'exp3', 'exp4', 'duck')
|
||||
opts = ('exp2', 'exp3', 'exp4', 'gate', 'duck')
|
||||
if val not in opts:
|
||||
self.logger.warning(f'mode got {val}, expected one of {opts}')
|
||||
self.setter('mode', opts.index(val))
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user