Allow None animation, stopping the update thread

This commit is contained in:
Stefan Bethke 2022-07-23 17:47:19 +02:00
commit f4f5458209
2 changed files with 39 additions and 25 deletions

View file

@ -20,7 +20,7 @@ def static(path):
@route('/api/state/<state>')
def update(state):
if state == "off":
dmx.setAnimation(Steady(0, 0, 0))
dmx.setAnimation(None)
elif state == "white":
dmx.setAnimation(Steady(255, 255, 255))
elif state == "red":