Fix RGBW for WS2812 SPI driver (#24367)
This commit is contained in:
parent
e83a36dfbf
commit
4a6ba1e808
@ -133,7 +133,7 @@ static void set_led_color_rgb(rgb_led_t color, int pos) {
|
|||||||
#endif
|
#endif
|
||||||
#ifdef WS2812_RGBW
|
#ifdef WS2812_RGBW
|
||||||
for (int j = 0; j < 4; j++)
|
for (int j = 0; j < 4; j++)
|
||||||
tx_start[BYTES_FOR_LED * pos + BYTES_FOR_LED_BYTE * 4 + j] = get_protocol_eq(color.w, j);
|
tx_start[BYTES_FOR_LED * pos + BYTES_FOR_LED_BYTE * 3 + j] = get_protocol_eq(color.w, j);
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user