Compare commits

..

2 Commits
v2.4.2 ... dev

Author SHA1 Message Date
669aba4cc4 fixes bug with {Gate}.mode() setting incorrect values.
patch bump
2026-02-04 06:10:40 +00:00
ce4fccdc85 remove unnecessary assignment 2026-02-02 04:18:23 +00:00
2 changed files with 4 additions and 5 deletions

View File

@ -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" }

View File

@ -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))
@ -525,8 +525,7 @@ class EQ:
@property @property
def quality(self) -> float: def quality(self) -> float:
raw_value = self.getter('q')[0] retval = util.log_get(0.3, 10, 1.0 - self.getter('q')[0])
retval = util.log_get(0.3, 10, 1.0 - raw_value)
return round(retval, 1) return round(retval, 1)
@quality.setter @quality.setter