diff options
author | Ryan <fauxpark@gmail.com> | 2023-09-04 10:19:59 +1000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-09-04 01:19:59 +0100 |
commit | 41bd4e35a09cc50f45112074d2b776254a3a17f8 (patch) | |
tree | 9258c5ad40dda232e3b8271942b436bdafa6f115 /keyboards/oddforge/vea | |
parent | 1e3095f9cce45fab0a566e692b1ff1c2047cfa08 (diff) |
Clean up RGB LED type (#21859)
Diffstat (limited to 'keyboards/oddforge/vea')
-rw-r--r-- | keyboards/oddforge/vea/ws2812_custom.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/keyboards/oddforge/vea/ws2812_custom.c b/keyboards/oddforge/vea/ws2812_custom.c index 0dc5a2d0f1..f52c8d06a8 100644 --- a/keyboards/oddforge/vea/ws2812_custom.c +++ b/keyboards/oddforge/vea/ws2812_custom.c @@ -22,13 +22,13 @@ 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 >> 1), WS2812_I2C_TIMEOUT); - i2c_transmit(WS2812_I2C_ADDRESS_RIGHT, (uint8_t *)ledarray+(sizeof(LED_TYPE) * (leds >> 1)), sizeof(LED_TYPE) * (leds - (leds >> 1)), WS2812_I2C_TIMEOUT); + i2c_transmit(WS2812_I2C_ADDRESS, (uint8_t *)ledarray, sizeof(rgb_led_t) * (leds >> 1), WS2812_I2C_TIMEOUT); + i2c_transmit(WS2812_I2C_ADDRESS_RIGHT, (uint8_t *)ledarray+(sizeof(rgb_led_t) * (leds >> 1)), sizeof(rgb_led_t) * (leds - (leds >> 1)), WS2812_I2C_TIMEOUT); } |