diff options
author | Ryan <fauxpark@gmail.com> | 2023-02-06 13:36:09 +1100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-02-06 02:36:09 +0000 |
commit | f0618a1d53a50a6ed6a6b050daf31365599bef4b (patch) | |
tree | 45ffe5bc929f0815b81816fd648f1a90cfbe5356 /keyboards/gmmk/pro/rev1/ansi/keymaps/byungyoonc | |
parent | d5e622b979c54ddc8f9ad97116c302e29c6aed12 (diff) |
Remove `IS_HOST_LED_ON` and migrate usages (#19753)
Diffstat (limited to 'keyboards/gmmk/pro/rev1/ansi/keymaps/byungyoonc')
-rw-r--r-- | keyboards/gmmk/pro/rev1/ansi/keymaps/byungyoonc/keymap.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/keyboards/gmmk/pro/rev1/ansi/keymaps/byungyoonc/keymap.c b/keyboards/gmmk/pro/rev1/ansi/keymaps/byungyoonc/keymap.c index b54f7f404c..487e6dc04e 100644 --- a/keyboards/gmmk/pro/rev1/ansi/keymaps/byungyoonc/keymap.c +++ b/keyboards/gmmk/pro/rev1/ansi/keymaps/byungyoonc/keymap.c @@ -112,10 +112,11 @@ static void set_rgb_wlck_leds(void) { } bool rgb_matrix_indicators_advanced_user(uint8_t led_min, uint8_t led_max) { - if (IS_HOST_LED_ON(USB_LED_CAPS_LOCK)) { + led_t led_state = host_keyboard_led_state(); + if (led_state.caps_lock) { set_rgb_caps_leds(); } - if (!IS_HOST_LED_ON(USB_LED_NUM_LOCK)) { + if (!led_state.num_lock) { set_rgb_nlck_notset_leds(); } if (keymap_config.no_gui) { |