diff options
Diffstat (limited to 'layouts/community/ortho_4x12/drashna/keymap.c')
-rw-r--r-- | layouts/community/ortho_4x12/drashna/keymap.c | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/layouts/community/ortho_4x12/drashna/keymap.c b/layouts/community/ortho_4x12/drashna/keymap.c index 9ef2317f4..cb3166c94 100644 --- a/layouts/community/ortho_4x12/drashna/keymap.c +++ b/layouts/community/ortho_4x12/drashna/keymap.c | |||
@@ -215,11 +215,12 @@ void rgb_matrix_indicators_advanced_user(uint8_t led_min, uint8_t led_max) { | |||
215 | uint8_t this_mod = get_mods(); | 215 | uint8_t this_mod = get_mods(); |
216 | uint8_t this_led = host_keyboard_leds(); | 216 | uint8_t this_led = host_keyboard_leds(); |
217 | uint8_t this_osm = get_oneshot_mods(); | 217 | uint8_t this_osm = get_oneshot_mods(); |
218 | bool is_ez; | ||
219 | # ifdef KEYBOARD_planck_ez | 218 | # ifdef KEYBOARD_planck_ez |
220 | is_ez = true; | 219 | # define THUMB_LED 41 |
220 | # else | ||
221 | # define THUMB_LED 42 | ||
221 | # endif | 222 | # endif |
222 | 223 | # define RGB_MATRIX_INDICATOR_SET_COLOR_wrapper(...) RGB_MATRIX_INDICATOR_SET_COLOR(__VA_ARGS__) | |
223 | # if defined(RGBLIGHT_ENABLE) | 224 | # if defined(RGBLIGHT_ENABLE) |
224 | if (!userspace_config.rgb_layer_change) | 225 | if (!userspace_config.rgb_layer_change) |
225 | # else | 226 | # else |
@@ -265,16 +266,16 @@ void rgb_matrix_indicators_advanced_user(uint8_t led_min, uint8_t led_max) { | |||
265 | 266 | ||
266 | switch (get_highest_layer(default_layer_state)) { | 267 | switch (get_highest_layer(default_layer_state)) { |
267 | case _DEFAULT_LAYER_1: | 268 | case _DEFAULT_LAYER_1: |
268 | RGB_MATRIX_INDICATOR_SET_COLOR((is_ez ? 41 : 42), 0x00, 0xFF, 0xFF); | 269 | RGB_MATRIX_INDICATOR_SET_COLOR_wrapper(THUMB_LED, DEFAULT_LAYER_1_RGB); |
269 | break; | 270 | break; |
270 | case _DEFAULT_LAYER_2: | 271 | case _DEFAULT_LAYER_2: |
271 | RGB_MATRIX_INDICATOR_SET_COLOR((is_ez ? 41 : 42), 0xFF, 0x00, 0xFF); | 272 | RGB_MATRIX_INDICATOR_SET_COLOR_wrapper(THUMB_LED, DEFAULT_LAYER_2_RGB); |
272 | break; | 273 | break; |
273 | case _DEFAULT_LAYER_3: | 274 | case _DEFAULT_LAYER_3: |
274 | RGB_MATRIX_INDICATOR_SET_COLOR((is_ez ? 41 : 42), 0x00, 0xFF, 0x00); | 275 | RGB_MATRIX_INDICATOR_SET_COLOR_wrapper(THUMB_LED, DEFAULT_LAYER_3_RGB); |
275 | break; | 276 | break; |
276 | case _DEFAULT_LAYER_4: | 277 | case _DEFAULT_LAYER_4: |
277 | RGB_MATRIX_INDICATOR_SET_COLOR((is_ez ? 41 : 42), 0xD9, 0xA5, 0x21); | 278 | RGB_MATRIX_INDICATOR_SET_COLOR_wrapper(THUMB_LED, DEFAULT_LAYER_4_RGB); |
278 | break; | 279 | break; |
279 | } | 280 | } |
280 | 281 | ||