Skip to content

Commit

Permalink
Fix RGBW for WS2812 SPI driver (qmk#24367)
Browse files Browse the repository at this point in the history
  • Loading branch information
fauxpark authored and sqrtnull committed Oct 22, 2024
1 parent 4c15de6 commit 097dfb0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion platforms/chibios/drivers/ws2812_spi.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down

0 comments on commit 097dfb0

Please sign in to comment.