logo

qmk_firmware

custom branch of QMK firmware git clone https://anongit.hacktivis.me/git/qmk_firmware.git
commit: 4a6ba1e808f02c285323447f620ca296c59ae2f2
parent e83a36dfbf20f9a9d89a542d1a80c5cdc479c502
Author: Ryan <fauxpark@gmail.com>
Date:   Fri,  6 Sep 2024 08:46:29 +1000

Fix RGBW for WS2812 SPI driver (#24367)


Diffstat:

Mplatforms/chibios/drivers/ws2812_spi.c2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/platforms/chibios/drivers/ws2812_spi.c b/platforms/chibios/drivers/ws2812_spi.c @@ -133,7 +133,7 @@ static void set_led_color_rgb(rgb_led_t color, int pos) { #endif #ifdef WS2812_RGBW 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 }