adds more logging for getters

This commit is contained in:
onyx-and-iris 2023-10-21 18:02:55 +01:00
parent 87a1d62414
commit c8d0a0078d
2 changed files with 7 additions and 1 deletions

View File

@ -1,6 +1,6 @@
[tool.poetry]
name = "vban-cmd"
version = "2.4.10"
version = "2.4.11"
description = "Python interface for the VBAN RT Packet Service (Sendtext)"
authors = ["onyx-and-iris <code@onyxandiris.online>"]
license = "MIT"

View File

@ -8,6 +8,8 @@ def channel_bool_prop(param):
@partial(cache_bool, param=param)
def fget(self):
cmd = self._cmd(param)
self.logger.debug(f"getter: {cmd}")
return (
not int.from_bytes(
getattr(
@ -47,6 +49,8 @@ def strip_output_prop(param):
@partial(cache_bool, param=param)
def fget(self):
cmd = self._cmd(param)
self.logger.debug(f"getter: {cmd}")
return (
not int.from_bytes(self.public_packet.stripstate[self.index], "little")
& getattr(self._modes, f"_bus{param.lower()}")
@ -64,6 +68,8 @@ def bus_mode_prop(param):
@partial(cache_bool, param=param)
def fget(self):
cmd = self._cmd(param)
self.logger.debug(f"getter: {cmd}")
modelist = {
"amix": (1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1),
"repeat": (0, 2, 2, 0, 0, 2, 2, 0, 0, 2, 2),