diff options
Diffstat (limited to 'quantum/rgblight.c')
-rw-r--r-- | quantum/rgblight.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/quantum/rgblight.c b/quantum/rgblight.c index 7949bb688..141dc2e7b 100644 --- a/quantum/rgblight.c +++ b/quantum/rgblight.c | |||
@@ -611,6 +611,7 @@ void rgblight_set(void) { | |||
611 | # endif | 611 | # endif |
612 | } | 612 | } |
613 | } | 613 | } |
614 | |||
614 | # ifdef RGBLIGHT_LED_MAP | 615 | # ifdef RGBLIGHT_LED_MAP |
615 | LED_TYPE led0[RGBLED_NUM]; | 616 | LED_TYPE led0[RGBLED_NUM]; |
616 | for (uint8_t i = 0; i < RGBLED_NUM; i++) { | 617 | for (uint8_t i = 0; i < RGBLED_NUM; i++) { |
@@ -620,7 +621,13 @@ void rgblight_set(void) { | |||
620 | # else | 621 | # else |
621 | start_led = led + clipping_start_pos; | 622 | start_led = led + clipping_start_pos; |
622 | # endif | 623 | # endif |
623 | ws2812_setleds(start_led, num_leds); | 624 | |
625 | #ifdef RGBW | ||
626 | for (uint8_t i = 0; i < num_leds; i++) { | ||
627 | convert_rgb_to_rgbw(&start_led[i]); | ||
628 | } | ||
629 | #endif | ||
630 | ws2812_setleds(start_led, num_leds); | ||
624 | } | 631 | } |
625 | #endif | 632 | #endif |
626 | 633 | ||