diff options
Diffstat (limited to 'keyboards/dztech/dz40rgb/keymaps/default/keymap.c')
-rw-r--r-- | keyboards/dztech/dz40rgb/keymaps/default/keymap.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/keyboards/dztech/dz40rgb/keymaps/default/keymap.c b/keyboards/dztech/dz40rgb/keymaps/default/keymap.c index 59b917121..650c178a7 100644 --- a/keyboards/dztech/dz40rgb/keymaps/default/keymap.c +++ b/keyboards/dztech/dz40rgb/keymaps/default/keymap.c | |||
@@ -31,11 +31,11 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | |||
31 | ), | 31 | ), |
32 | 32 | ||
33 | }; | 33 | }; |
34 | |||
35 | extern led_config_t g_led_config; | ||
34 | void rgb_matrix_layer_helper (uint8_t red, uint8_t green, uint8_t blue, bool default_layer) { | 36 | void rgb_matrix_layer_helper (uint8_t red, uint8_t green, uint8_t blue, bool default_layer) { |
35 | rgb_led led; | ||
36 | for (int i = 0; i < DRIVER_LED_TOTAL; i++) { | 37 | for (int i = 0; i < DRIVER_LED_TOTAL; i++) { |
37 | led = g_rgb_leds[i]; | 38 | if (HAS_FLAGS(g_led_config.flags[i], LED_FLAG_MODIFIER)) { |
38 | if (HAS_FLAGS(led.flags, LED_FLAG_MODIFIER)) { | ||
39 | rgb_matrix_set_color( i, red, green, blue ); | 39 | rgb_matrix_set_color( i, red, green, blue ); |
40 | } | 40 | } |
41 | } | 41 | } |