diff options
| author | Ryan <fauxpark@gmail.com> | 2024-09-06 08:46:29 +1000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-09-05 23:46:29 +0100 |
| commit | 4a6ba1e808f02c285323447f620ca296c59ae2f2 (patch) | |
| tree | f295d0415b393ea82ae574eb4660c60918bba30a | |
| parent | e83a36dfbf20f9a9d89a542d1a80c5cdc479c502 (diff) | |
Fix RGBW for WS2812 SPI driver (#24367)
| -rw-r--r-- | platforms/chibios/drivers/ws2812_spi.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/platforms/chibios/drivers/ws2812_spi.c b/platforms/chibios/drivers/ws2812_spi.c index ad2e87781c..9896f9e69d 100644 --- 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) { | |||
| 133 | #endif | 133 | #endif |
| 134 | #ifdef WS2812_RGBW | 134 | #ifdef WS2812_RGBW |
| 135 | for (int j = 0; j < 4; j++) | 135 | for (int j = 0; j < 4; j++) |
| 136 | tx_start[BYTES_FOR_LED * pos + BYTES_FOR_LED_BYTE * 4 + j] = get_protocol_eq(color.w, j); | 136 | tx_start[BYTES_FOR_LED * pos + BYTES_FOR_LED_BYTE * 3 + j] = get_protocol_eq(color.w, j); |
| 137 | #endif | 137 | #endif |
| 138 | } | 138 | } |
| 139 | 139 | ||
