Skip to content

Commit

Permalink
Fix RGBW for WS2812 SPI driver (#24367)
Browse files Browse the repository at this point in the history
  • Loading branch information
fauxpark committed Sep 5, 2024
1 parent e83a36d commit 4a6ba1e
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 4a6ba1e

Please sign in to comment.