diff --git a/CHANGELOG.md b/CHANGELOG.md index fc08311..a539e37 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,8 +9,18 @@ Before any major/minor/patch bump all unit tests will be run to verify they pass ## [Unreleased] -- [x] delay now settable with keyword arg. -- [x] type checks removed, prefer duck typing +- [ ] + +## [2.1.0] - 2022-11-08 + +### Added + +- delay keyword argument +- bounds checks for vals passed to lin_set/log_set + +### Removed + +- type checks, prefer duck typing ## [2.0.0] - 2022-11-07 diff --git a/pyproject.toml b/pyproject.toml index 2d1e2d3..488424f 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "xair-api" -version = "2.0.2" +version = "2.1.0" description = "Remote control Behringer X-Air | Midas MR mixers through OSC" authors = ["onyx-and-iris "] license = "MIT" diff --git a/xair_api/meta.py b/xair_api/meta.py index 59b7fcd..6013ef0 100644 --- a/xair_api/meta.py +++ b/xair_api/meta.py @@ -64,6 +64,8 @@ def geq_prop(param): return round(lin_get(-15, 15, self.getter(param)[0]), 1) def fset(self, val): + if not -15 <= val <= 15: + raise XAirRemoteError("expected value in range -15.0 to 15.0") self.setter(param, lin_set(-15, 15, val)) return property(fget, fset)