diff options
author | Ryan <[email protected]> | 2023-09-04 10:19:59 +1000 |
---|---|---|
committer | GitHub <[email protected]> | 2023-09-04 01:19:59 +0100 |
commit | 41bd4e35a09cc50f45112074d2b776254a3a17f8 (patch) | |
tree | 9258c5ad40dda232e3b8271942b436bdafa6f115 /platforms/avr/drivers/ws2812_i2c.c | |
parent | 1e3095f9cce45fab0a566e692b1ff1c2047cfa08 (diff) | |
download | qmk_firmware-41bd4e35a09cc50f45112074d2b776254a3a17f8.tar.gz qmk_firmware-41bd4e35a09cc50f45112074d2b776254a3a17f8.zip |
Clean up RGB LED type (#21859)
Diffstat (limited to 'platforms/avr/drivers/ws2812_i2c.c')
-rw-r--r-- | platforms/avr/drivers/ws2812_i2c.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/platforms/avr/drivers/ws2812_i2c.c b/platforms/avr/drivers/ws2812_i2c.c index f4a2fbe0b3..f52a037b8e 100644 --- a/platforms/avr/drivers/ws2812_i2c.c +++ b/platforms/avr/drivers/ws2812_i2c.c @@ -18,12 +18,12 @@ void ws2812_init(void) { } // Setleds for standard RGB -void ws2812_setleds(LED_TYPE *ledarray, uint16_t leds) { +void ws2812_setleds(rgb_led_t *ledarray, uint16_t leds) { static bool s_init = false; if (!s_init) { ws2812_init(); s_init = true; } - i2c_transmit(WS2812_I2C_ADDRESS, (uint8_t *)ledarray, sizeof(LED_TYPE) * leds, WS2812_I2C_TIMEOUT); + i2c_transmit(WS2812_I2C_ADDRESS, (uint8_t *)ledarray, sizeof(rgb_led_t) * leds, WS2812_I2C_TIMEOUT); } |