fix INFO alerts not working when rainbow was disabled

This commit is contained in:
Franzi 2024-02-11 16:13:10 +01:00
parent f695aa832e
commit ca5991da50
Signed by: kunsi
GPG key ID: 12E3D2136B818350

View file

@ -128,6 +128,20 @@ class DMXQueue:
50,
)
sleep(0.025)
else:
for idx in forward + reverse:
LOG.debug(idx)
self._update_all(
int(
(self.config.alerts.brightness / len(forward)) * idx
),
0,
50,
255,
50,
)
sleep(0.025)
self._update_all(0, 0, 0, 0, 0)
self.queue.task_done()
except Empty:
if self.config.rainbow.enable: