From b7b62ea2fe99142f9acda80ec2ddc4e7cb38674c Mon Sep 17 00:00:00 2001 From: onyx-and-iris <75868496+onyx-and-iris@users.noreply.github.com> Date: Fri, 8 Apr 2022 20:48:10 +0100 Subject: [PATCH] Update strip.py add mc to virtual strips --- vbancmd/strip.py | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/vbancmd/strip.py b/vbancmd/strip.py index 026fdcb..de7349f 100644 --- a/vbancmd/strip.py +++ b/vbancmd/strip.py @@ -100,7 +100,16 @@ class PhysicalInputStrip(InputStrip): class VirtualInputStrip(InputStrip): @property 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 def mc(self, val: bool):