mirror of
https://github.com/Klipper3d/klipper.git
synced 2026-01-02 21:00:32 -07:00
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
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue