diff options
author | Ryan <[email protected]> | 2024-04-28 00:36:54 +1000 |
---|---|---|
committer | GitHub <[email protected]> | 2024-04-28 00:36:54 +1000 |
commit | 0ff53b24984e88f385638e47ea076b4d2945c0c6 (patch) | |
tree | 73c0e43df640c132507cb146447adfb7d0ed4b49 /platforms/chibios/drivers/ws2812_spi.c | |
parent | 8f8fffc1740be81fbfe4a07a74e9f03962c1062a (diff) | |
download | qmk_firmware-0ff53b24984e88f385638e47ea076b4d2945c0c6.tar.gz qmk_firmware-0ff53b24984e88f385638e47ea076b4d2945c0c6.zip |
Rename `RGBW` define to `WS2812_RGBW` (#23585)
Diffstat (limited to 'platforms/chibios/drivers/ws2812_spi.c')
-rw-r--r-- | platforms/chibios/drivers/ws2812_spi.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/platforms/chibios/drivers/ws2812_spi.c b/platforms/chibios/drivers/ws2812_spi.c index 5b990ccaa0..ad2e87781c 100644 --- a/platforms/chibios/drivers/ws2812_spi.c +++ b/platforms/chibios/drivers/ws2812_spi.c @@ -76,7 +76,7 @@ #endif #define BYTES_FOR_LED_BYTE 4 -#ifdef RGBW +#ifdef WS2812_RGBW # define WS2812_CHANNELS 4 #else # define WS2812_CHANNELS 3 @@ -131,7 +131,7 @@ static void set_led_color_rgb(rgb_led_t color, int pos) { for (int j = 0; j < 4; j++) tx_start[BYTES_FOR_LED * pos + BYTES_FOR_LED_BYTE * 2 + j] = get_protocol_eq(color.r, j); #endif -#ifdef RGBW +#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); #endif |