strip switch to bus in observable example.

This commit is contained in:
onyx-and-iris 2022-07-09 11:08:16 +01:00
parent e979595a09
commit fd529dc56c

View File

@ -12,12 +12,11 @@ class Observer:
print("mdirty!")
if subject == "ldirty":
info = (
"levels changed:",
f"[strip 0 {self.vm.strip[0].levels.is_updated}]",
f"[strip 1 {self.vm.strip[1].levels.is_updated}]",
f"[strip 2 {self.vm.strip[2].levels.is_updated}]",
f"[strip 3 {self.vm.strip[3].levels.is_updated}]",
f"[strip 4 {self.vm.strip[4].levels.is_updated}]",
f"[{self.vm.bus[0]} {self.vm.bus[0].levels.is_updated}]",
f"[{self.vm.bus[1]} {self.vm.bus[1].levels.is_updated}]",
f"[{self.vm.bus[2]} {self.vm.bus[2].levels.is_updated}]",
f"[{self.vm.bus[3]} {self.vm.bus[3].levels.is_updated}]",
f"[{self.vm.bus[4]} {self.vm.bus[4].levels.is_updated}]",
)
print(" ".join(info))