mirror of
https://github.com/onyx-and-iris/vban-cmd-python.git
synced 2025-01-18 18:40:47 +00:00
Update strip.py
add mc to virtual strips
This commit is contained in:
parent
ad1c3f9f6b
commit
b7b62ea2fe
@ -100,7 +100,16 @@ class PhysicalInputStrip(InputStrip):
|
|||||||
class VirtualInputStrip(InputStrip):
|
class VirtualInputStrip(InputStrip):
|
||||||
@property
|
@property
|
||||||
def mc(self) -> bool:
|
def mc(self) -> bool:
|
||||||
return
|
val = self.getter("mc")
|
||||||
|
if val is None:
|
||||||
|
val = (
|
||||||
|
not int.from_bytes(self.public_packet.stripstate[self.index], "little")
|
||||||
|
& getattr(self._modes, f"_mutec")
|
||||||
|
== 0
|
||||||
|
)
|
||||||
|
self._remote.cache[f"{self.identifier}.mc"] = [val, False]
|
||||||
|
return val
|
||||||
|
return val == 1
|
||||||
|
|
||||||
@mc.setter
|
@mc.setter
|
||||||
def mc(self, val: bool):
|
def mc(self, val: bool):
|
||||||
|
Loading…
Reference in New Issue
Block a user