We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 87c9c01 commit 6b395ccCopy full SHA for 6b395cc
src/rp2_common/pico_status_led/status_led.c
@@ -80,7 +80,8 @@ bool colored_status_led_set_state(bool led_on) {
80
if (colored_status_led_supported()) {
81
#if COLORED_STATUS_LED_USING_WS2812_PIO
82
success = true;
83
- if (led_on && !colored_status_led_on) {
+ if (led_on) {
84
+ // Turn the LED "on" even if it was already on, as the color might have changed
85
success = set_ws2812(colored_status_led_on_color);
86
} else if (!led_on && colored_status_led_on) {
87
success = set_ws2812(0);
0 commit comments