summaryrefslogtreecommitdiff
path: root/quantum/rgb_matrix_animations/alpha_mods_anim.h
diff options
context:
space:
mode:
authorXScorpion2 <rcalt2vt@gmail.com>2019-04-30 00:18:50 +0200
committerDrashna Jaelre <drashna@live.com>2019-05-07 21:45:35 -0700
commit6364fe4efb3c2ac402d3d189a246e4428394840c (patch)
treed40cc19fe17d2afa6ff037bfddcb9be09571dfb5 /quantum/rgb_matrix_animations/alpha_mods_anim.h
parentff3e430970fb38940598ae96e2c85d1cb9e15ad9 (diff)
Updated rgb_led struct field modifier to flags (#5619)
Updated effects to test led flags Updated massdrop to use new flags field for led toggle
Diffstat (limited to 'quantum/rgb_matrix_animations/alpha_mods_anim.h')
-rw-r--r--quantum/rgb_matrix_animations/alpha_mods_anim.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/quantum/rgb_matrix_animations/alpha_mods_anim.h b/quantum/rgb_matrix_animations/alpha_mods_anim.h
index cc1914d7f4..4bd01c4fc8 100644
--- a/quantum/rgb_matrix_animations/alpha_mods_anim.h
+++ b/quantum/rgb_matrix_animations/alpha_mods_anim.h
@@ -1,7 +1,7 @@
#pragma once
#ifndef DISABLE_RGB_MATRIX_ALPHAS_MODS
-extern const rgb_led g_rgb_leds[DRIVER_LED_TOTAL];
+extern rgb_led g_rgb_leds[DRIVER_LED_TOTAL];
extern rgb_config_t rgb_matrix_config;
// alphas = color1, mods = color2
@@ -14,7 +14,8 @@ bool rgb_matrix_alphas_mods(effect_params_t* params) {
RGB rgb2 = hsv_to_rgb(hsv);
for (uint8_t i = led_min; i < led_max; i++) {
- if (g_rgb_leds[i].modifier) {
+ RGB_MATRIX_TEST_LED_FLAGS();
+ if (HAS_FLAGS(g_rgb_leds[i].flags, LED_FLAG_MODIFIER)) {
rgb_matrix_set_color(i, rgb2.r, rgb2.g, rgb2.b);
} else {
rgb_matrix_set_color(i, rgb1.r, rgb1.g, rgb1.b);