diff options
Diffstat (limited to 'layouts/community/ortho_4x12/drashna/keymap.c')
| -rw-r--r-- | layouts/community/ortho_4x12/drashna/keymap.c | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/layouts/community/ortho_4x12/drashna/keymap.c b/layouts/community/ortho_4x12/drashna/keymap.c index c3899cd03..d2957d8fd 100644 --- a/layouts/community/ortho_4x12/drashna/keymap.c +++ b/layouts/community/ortho_4x12/drashna/keymap.c | |||
| @@ -224,16 +224,14 @@ void rgb_matrix_indicators_user(void) { | |||
| 224 | is_ez = true; | 224 | is_ez = true; |
| 225 | # endif | 225 | # endif |
| 226 | 226 | ||
| 227 | if (userspace_config.rgb_layer_change && | 227 | if (g_suspend_state || !rgb_matrix_config.enable) return; |
| 228 | # ifdef RGB_DISABLE_WHEN_USB_SUSPENDED | 228 | |
| 229 | !g_suspend_state && | ||
| 230 | # endif | ||
| 231 | # if defined(RGBLIGHT_ENABLE) | 229 | # if defined(RGBLIGHT_ENABLE) |
| 232 | (!rgblight_config.enable && rgb_matrix_config.enable) | 230 | if (!userspace_config.rgb_layer_change) |
| 233 | # else | 231 | # else |
| 234 | rgb_matrix_config.enable | 232 | if (userspace_config.rgb_layer_change) |
| 235 | # endif | 233 | # endif |
| 236 | ) { | 234 | { |
| 237 | switch (get_highest_layer(layer_state)) { | 235 | switch (get_highest_layer(layer_state)) { |
| 238 | case _GAMEPAD: | 236 | case _GAMEPAD: |
| 239 | rgb_matrix_layer_helper(HSV_ORANGE, 1, rgb_matrix_config.speed, LED_FLAG_MODIFIER); | 237 | rgb_matrix_layer_helper(HSV_ORANGE, 1, rgb_matrix_config.speed, LED_FLAG_MODIFIER); |
| @@ -297,6 +295,7 @@ void rgb_matrix_indicators_user(void) { | |||
| 297 | rgb_matrix_set_color(is_ez ? 41 : 42, 0xD9, 0xA5, 0x21); | 295 | rgb_matrix_set_color(is_ez ? 41 : 42, 0xD9, 0xA5, 0x21); |
| 298 | break; | 296 | break; |
| 299 | } | 297 | } |
| 298 | |||
| 300 | if ((this_mod | this_osm) & MOD_MASK_SHIFT || this_led & (1 << USB_LED_CAPS_LOCK)) { | 299 | if ((this_mod | this_osm) & MOD_MASK_SHIFT || this_led & (1 << USB_LED_CAPS_LOCK)) { |
| 301 | if (!layer_state_cmp(layer_state, _ADJUST)) { | 300 | if (!layer_state_cmp(layer_state, _ADJUST)) { |
| 302 | rgb_matrix_set_color(24, 0x00, 0xFF, 0x00); | 301 | rgb_matrix_set_color(24, 0x00, 0xFF, 0x00); |
