logo

qmk_firmware

custom branch of QMK firmware git clone https://anongit.hacktivis.me/git/qmk_firmware.git
commit: c1565bebcef26c400801caa4447012c2b9fa0a62
parent 8247f9e11446bfc6655b52177678eff7529c27dc
Author: HorrorTroll <sonicvipduc@gmail.com>
Date:   Wed,  8 Jan 2025 23:51:28 +0700

Patch up issue when compile with APA102 driver (#24800)


Diffstat:

Mdrivers/led/apa102.c2+-
Mdrivers/led/apa102.h2+-
2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/led/apa102.c b/drivers/led/apa102.c @@ -122,7 +122,7 @@ void apa102_init(void) { gpio_set_pin_output(APA102_CI_PIN); } -void apa102_set_color(uint16_t index, uint8_t red, uint8_t green, uint8_t blue) { +void apa102_set_color(int index, uint8_t red, uint8_t green, uint8_t blue) { apa102_leds[index].r = red; apa102_leds[index].g = green; apa102_leds[index].b = blue; diff --git a/drivers/led/apa102.h b/drivers/led/apa102.h @@ -32,7 +32,7 @@ #define APA102_MAX_BRIGHTNESS 31 void apa102_init(void); -void apa102_set_color(uint16_t index, uint8_t red, uint8_t green, uint8_t blue); +void apa102_set_color(int index, uint8_t red, uint8_t green, uint8_t blue); void apa102_set_color_all(uint8_t red, uint8_t green, uint8_t blue); void apa102_flush(void);