Browse Source

removed redundant channel loop

master
Lars Hoogestraat 2 months ago
parent
commit
5f7bcb701e
  1. 7
      addon.py

7
addon.py

@ -49,11 +49,8 @@ class BiasLightingMonitor(xbmc.Monitor):
if self.settings.get_mode() == 0:
if self.settings.get_color() == 0:
clear_mote()
for c in channels.items():
for pixel in range(NUM_PIXEL):
set_static_color(channels, pixel, self.settings.get_color(), self.settings.get_brightness())
mote.show()
for pixel in range(NUM_PIXEL):
set_static_color(channels, pixel, self.settings.get_color(), self.settings.get_brightness())
elif self.settings.get_mode() == 1:
capture = xbmc.RenderCapture()
capture.capture(WIDTH, HEIGHT)

Loading…
Cancel
Save