mirror of
https://github.com/onyx-and-iris/vban-cmd-python.git
synced 2024-11-15 17:10:46 +00:00
Update base.py
fix bug setting dirty parameters
This commit is contained in:
parent
f3dcc6415b
commit
b4f1b8b93f
@ -198,21 +198,23 @@ class VbanCmd(metaclass=ABCMeta):
|
|||||||
)
|
)
|
||||||
),
|
),
|
||||||
)
|
)
|
||||||
|
self._pdirty = private_packet.pdirty(self.public_packet)
|
||||||
|
self._ldirty = any(any(list_) for list_ in (strip_comp, bus_comp))
|
||||||
|
|
||||||
if self._public_packet != private_packet:
|
if self._public_packet != private_packet:
|
||||||
self._public_packet = private_packet
|
self._public_packet = private_packet
|
||||||
if private_packet.pdirty(self.public_packet):
|
if self.pdirty:
|
||||||
self.subject.notify("pdirty")
|
self.subject.notify("pdirty")
|
||||||
if any(any(list_) for list_ in (strip_comp, bus_comp)):
|
if self.ldirty:
|
||||||
self.subject.notify(
|
self.subject.notify(
|
||||||
"ldirty",
|
"ldirty",
|
||||||
(
|
(
|
||||||
self.public_packet.inputlevels,
|
self.public_packet.inputlevels,
|
||||||
strip_comp,
|
strip_comp,
|
||||||
self.public_packet.outputlevels,
|
self.public_packet.outputlevels,
|
||||||
bus_comp,
|
bus_comp,
|
||||||
),
|
),
|
||||||
)
|
)
|
||||||
time.sleep(self.ratelimit)
|
time.sleep(self.ratelimit)
|
||||||
|
|
||||||
@property
|
@property
|
||||||
|
Loading…
Reference in New Issue
Block a user