From 6b395cce04eef70f45256363ce5bbe5dfcdb8ffa Mon Sep 17 00:00:00 2001 From: Andrew Scheller Date: Mon, 15 Sep 2025 19:09:21 +0100 Subject: [PATCH] Fix pico_status_led to change the color of an already-on colored LED (#2632) Partially fixes #2630, as it doesn't take care of the required delay between setting the LED --- src/rp2_common/pico_status_led/status_led.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/rp2_common/pico_status_led/status_led.c b/src/rp2_common/pico_status_led/status_led.c index fc95a968..309b21e7 100644 --- a/src/rp2_common/pico_status_led/status_led.c +++ b/src/rp2_common/pico_status_led/status_led.c @@ -80,7 +80,8 @@ bool colored_status_led_set_state(bool led_on) { if (colored_status_led_supported()) { #if COLORED_STATUS_LED_USING_WS2812_PIO success = true; - if (led_on && !colored_status_led_on) { + if (led_on) { + // Turn the LED "on" even if it was already on, as the color might have changed success = set_ws2812(colored_status_led_on_color); } else if (!led_on && colored_status_led_on) { success = set_ws2812(0);