aboutsummaryrefslogtreecommitdiffstats
path: root/klippy
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2022-04-18 11:06:40 -0400
committerKevin O'Connor <kevin@koconnor.net>2022-04-18 11:07:05 -0400
commit260fd7d367b78a53170dde80fb53dac12df7576e (patch)
treea2cd49e14188bbe18a1d11a91f66764b22dd8905 /klippy
parentfb02e2b5771b12c242d928d5d203a427f4ca1abe (diff)
downloadkutter-260fd7d367b78a53170dde80fb53dac12df7576e.tar.gz
kutter-260fd7d367b78a53170dde80fb53dac12df7576e.tar.xz
kutter-260fd7d367b78a53170dde80fb53dac12df7576e.zip
pca9632: Fix color_order assignment
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'klippy')
-rw-r--r--klippy/extras/pca9632.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/klippy/extras/pca9632.py b/klippy/extras/pca9632.py
index 18908208..00876dc1 100644
--- a/klippy/extras/pca9632.py
+++ b/klippy/extras/pca9632.py
@@ -32,7 +32,7 @@ class PCA9632:
color_order = config.get("color_order", "RGBW")
if sorted(color_order) != sorted("RGBW"):
raise config.error("Invalid color_order '%s'" % (color_order,))
- self.color_map = [color_order.index(c) for c in "RGBW"]
+ self.color_map = ["RGBW".index(c) for c in color_order]
self.prev_regs = {}
pled = printer.load_object(config, "led")
self.led_helper = pled.setup_helper(config, self.update_leds, 1)