Fix off animation

This commit is contained in:
Stefan Bethke 2022-07-26 12:27:50 +02:00
parent efb7c20af5
commit bbf862a0a2
2 changed files with 2 additions and 1 deletions

View file

@ -21,7 +21,7 @@ class Off(Animation):
super(Off, self).__init__() super(Off, self).__init__()
def name(self): def name(self):
return "Off" return "off"
class Steady(Animation): class Steady(Animation):

1
dmx.py
View file

@ -135,6 +135,7 @@ class DMX:
# one frame black # one frame black
self._animation = Steady((0, 0, 0)) self._animation = Steady((0, 0, 0))
self.update() self.update()
self._animation = Off()
else: else:
self.start() self.start()
print(f"Animation: {animation}", file=sys.stderr) print(f"Animation: {animation}", file=sys.stderr)