Allow None animation, stopping the update thread
This commit is contained in:
parent
d4166db9ab
commit
f4f5458209
2 changed files with 39 additions and 25 deletions
|
|
@ -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":
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue