diff options
author | Kevin O'Connor <kevin@koconnor.net> | 2022-04-18 10:55:35 -0400 |
---|---|---|
committer | Kevin O'Connor <kevin@koconnor.net> | 2022-04-18 10:55:35 -0400 |
commit | fb02e2b5771b12c242d928d5d203a427f4ca1abe (patch) | |
tree | 4235cefd3883bb7ac2610394982a2946f0553e37 /klippy | |
parent | 5f0885958d42a282e04b0c1ba1c4d4ec55393455 (diff) | |
download | kutter-fb02e2b5771b12c242d928d5d203a427f4ca1abe.tar.gz kutter-fb02e2b5771b12c242d928d5d203a427f4ca1abe.tar.xz kutter-fb02e2b5771b12c242d928d5d203a427f4ca1abe.zip |
neopixel: Fix color_order assignment
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'klippy')
-rw-r--r-- | klippy/extras/neopixel.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/klippy/extras/neopixel.py b/klippy/extras/neopixel.py index 3951de1c..ef728fc2 100644 --- a/klippy/extras/neopixel.py +++ b/klippy/extras/neopixel.py @@ -38,7 +38,7 @@ class PrinterNeoPixel: rgb = "RGBW" if sorted(co) != sorted(rgb): raise config.error("Invalid color_order '%s'" % (co,)) - color_indexes.extend([(lidx, co.index(c)) for c in rgb]) + color_indexes.extend([(lidx, rgb.index(c)) for c in co]) self.color_map = list(enumerate(color_indexes)) if len(self.color_map) > MAX_MCU_SIZE: raise config.error("neopixel chain too long") |