Fix RGBW for WS2812 SPI driver (#24367)

This commit is contained in:
Ryan 2024-09-06 08:46:29 +10:00 committed by GitHub
parent e83a36dfbf
commit 4a6ba1e808
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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
} }