aboutsummaryrefslogtreecommitdiff
path: root/keyboards/dztech/dz40rgb/keymaps/split_space/keymap.c
diff options
context:
space:
mode:
Diffstat (limited to 'keyboards/dztech/dz40rgb/keymaps/split_space/keymap.c')
-rw-r--r--keyboards/dztech/dz40rgb/keymaps/split_space/keymap.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/keyboards/dztech/dz40rgb/keymaps/split_space/keymap.c b/keyboards/dztech/dz40rgb/keymaps/split_space/keymap.c
index 5613e3500..80741b19c 100644
--- a/keyboards/dztech/dz40rgb/keymaps/split_space/keymap.c
+++ b/keyboards/dztech/dz40rgb/keymaps/split_space/keymap.c
@@ -53,12 +53,10 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
53 53
54 54
55 55
56 56extern led_config_t g_led_config;
57void rgb_matrix_layer_helper (uint8_t red, uint8_t green, uint8_t blue, bool default_layer) { 57void rgb_matrix_layer_helper (uint8_t red, uint8_t green, uint8_t blue, bool default_layer) {
58 rgb_led led;
59 for (int i = 0; i < DRIVER_LED_TOTAL; i++) { 58 for (int i = 0; i < DRIVER_LED_TOTAL; i++) {
60 led = g_rgb_leds[i]; 59 if (HAS_FLAGS(g_led_config.flags[i], LED_FLAG_MODIFIER)) {
61 if (HAS_FLAGS(led.flags, LED_FLAG_MODIFIER)) {
62 rgb_matrix_set_color( i, red, green, blue ); 60 rgb_matrix_set_color( i, red, green, blue );
63 } 61 }
64 } 62 }