led: Fix off-by-one bug in SET_LED_TEMPLATE INDEX parameter
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
parent
5493bdfb48
commit
037377b927
@ -21,7 +21,7 @@ class LEDHelper:
|
||||
self.led_state = [(red, green, blue, white)] * led_count
|
||||
# Support setting an led template
|
||||
self.template_eval = output_pin.lookup_template_eval(config)
|
||||
self.tcallbacks = [(lambda text, s=self, index=i:
|
||||
self.tcallbacks = [(lambda text, s=self, index=i+1:
|
||||
s._template_update(index, text))
|
||||
for i in range(led_count)]
|
||||
# Register commands
|
||||
|
Loading…
x
Reference in New Issue
Block a user