diff options
author | Kevin O'Connor <kevin@koconnor.net> | 2025-04-11 12:00:34 -0400 |
---|---|---|
committer | Kevin O'Connor <kevin@koconnor.net> | 2025-04-11 12:00:34 -0400 |
commit | 037377b92733393a3ca733903875b46dd57b341f (patch) | |
tree | bf02510fada13109dc018483b7dc2ba9b9cf48a9 /klippy/extras | |
parent | 5493bdfb483f59935381703b1e1cedb466e8586d (diff) | |
download | kutter-037377b92733393a3ca733903875b46dd57b341f.tar.gz kutter-037377b92733393a3ca733903875b46dd57b341f.tar.xz kutter-037377b92733393a3ca733903875b46dd57b341f.zip |
led: Fix off-by-one bug in SET_LED_TEMPLATE INDEX parameter
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'klippy/extras')
-rw-r--r-- | klippy/extras/led.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/klippy/extras/led.py b/klippy/extras/led.py index 22b51e8e..87cc54c3 100644 --- a/klippy/extras/led.py +++ b/klippy/extras/led.py @@ -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 |