Fixed bug where new loops were being added on top of the running program.

master
psannus 4 years ago
parent 9e9617468e
commit 6edc15e4af
  1. 1
      pyleds/lib/Litsimaja.py

@ -25,6 +25,7 @@ class Litsimaja(object):
self._strip.show() self._strip.show()
def add_loop(self, loop: LoopSwitch): def add_loop(self, loop: LoopSwitch):
self.clear_loops()
self._loops.append(loop) self._loops.append(loop)
def clear_loops(self): def clear_loops(self):

Loading…
Cancel
Save