summaryrefslogtreecommitdiff
path: root/keyboards/annepro2/rgb_driver.c
diff options
context:
space:
mode:
Diffstat (limited to 'keyboards/annepro2/rgb_driver.c')
-rw-r--r--keyboards/annepro2/rgb_driver.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/keyboards/annepro2/rgb_driver.c b/keyboards/annepro2/rgb_driver.c
index 240a5f4e5b..1040e89f98 100644
--- a/keyboards/annepro2/rgb_driver.c
+++ b/keyboards/annepro2/rgb_driver.c
@@ -36,11 +36,11 @@ void init(void) {
void flush(void) {}
void set_color(int index, uint8_t r, uint8_t g, uint8_t b) {
- if (r != led_mask[led_pos[index]].p.red ||
- g != led_mask[led_pos[index]].p.green ||
- b != led_mask[led_pos[index]].p.blue)
+ if (r != led_colors[led_pos[index]].p.red ||
+ g != led_colors[led_pos[index]].p.green ||
+ b != led_colors[led_pos[index]].p.blue)
{
- led_mask[led_pos[index]] = (ap2_led_t){
+ led_colors[led_pos[index]] = (ap2_led_t){
.p.blue = b,
.p.red = r,
.p.green = g,