From 260fd7d367b78a53170dde80fb53dac12df7576e Mon Sep 17 00:00:00 2001 From: Kevin O'Connor Date: Mon, 18 Apr 2022 11:06:40 -0400 Subject: [PATCH] pca9632: Fix color_order assignment Signed-off-by: Kevin O'Connor --- klippy/extras/pca9632.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)