mirror of
https://github.com/onyx-and-iris/vban-cmd-python.git
synced 2024-11-15 17:10:46 +00:00
adds more logging for getters
This commit is contained in:
parent
87a1d62414
commit
c8d0a0078d
@ -1,6 +1,6 @@
|
|||||||
[tool.poetry]
|
[tool.poetry]
|
||||||
name = "vban-cmd"
|
name = "vban-cmd"
|
||||||
version = "2.4.10"
|
version = "2.4.11"
|
||||||
description = "Python interface for the VBAN RT Packet Service (Sendtext)"
|
description = "Python interface for the VBAN RT Packet Service (Sendtext)"
|
||||||
authors = ["onyx-and-iris <code@onyxandiris.online>"]
|
authors = ["onyx-and-iris <code@onyxandiris.online>"]
|
||||||
license = "MIT"
|
license = "MIT"
|
||||||
|
@ -8,6 +8,8 @@ def channel_bool_prop(param):
|
|||||||
|
|
||||||
@partial(cache_bool, param=param)
|
@partial(cache_bool, param=param)
|
||||||
def fget(self):
|
def fget(self):
|
||||||
|
cmd = self._cmd(param)
|
||||||
|
self.logger.debug(f"getter: {cmd}")
|
||||||
return (
|
return (
|
||||||
not int.from_bytes(
|
not int.from_bytes(
|
||||||
getattr(
|
getattr(
|
||||||
@ -47,6 +49,8 @@ def strip_output_prop(param):
|
|||||||
|
|
||||||
@partial(cache_bool, param=param)
|
@partial(cache_bool, param=param)
|
||||||
def fget(self):
|
def fget(self):
|
||||||
|
cmd = self._cmd(param)
|
||||||
|
self.logger.debug(f"getter: {cmd}")
|
||||||
return (
|
return (
|
||||||
not int.from_bytes(self.public_packet.stripstate[self.index], "little")
|
not int.from_bytes(self.public_packet.stripstate[self.index], "little")
|
||||||
& getattr(self._modes, f"_bus{param.lower()}")
|
& getattr(self._modes, f"_bus{param.lower()}")
|
||||||
@ -64,6 +68,8 @@ def bus_mode_prop(param):
|
|||||||
|
|
||||||
@partial(cache_bool, param=param)
|
@partial(cache_bool, param=param)
|
||||||
def fget(self):
|
def fget(self):
|
||||||
|
cmd = self._cmd(param)
|
||||||
|
self.logger.debug(f"getter: {cmd}")
|
||||||
modelist = {
|
modelist = {
|
||||||
"amix": (1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1),
|
"amix": (1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1),
|
||||||
"repeat": (0, 2, 2, 0, 0, 2, 2, 0, 0, 2, 2),
|
"repeat": (0, 2, 2, 0, 0, 2, 2, 0, 0, 2, 2),
|
||||||
|
Loading…
Reference in New Issue
Block a user