summaryrefslogtreecommitdiffstats
path: root/keyboards/kbdfans/kbd6x/keymaps
diff options
context:
space:
mode:
authorRyan <fauxpark@gmail.com>2023-07-06 18:48:02 +1000
committerGitHub <noreply@github.com>2023-07-06 09:48:02 +0100
commit87b11345a55d076966846d87b60d0f315b8bb984 (patch)
treea64503358d5f30b55a722b882eebaf1b60b03e1f /keyboards/kbdfans/kbd6x/keymaps
parent928e03e8d669cb35a96c2aa4a09012c527b27892 (diff)
Get rid of `USB_LED_CAPS_LOCK` (#21436)
Diffstat (limited to 'keyboards/kbdfans/kbd6x/keymaps')
-rw-r--r--keyboards/kbdfans/kbd6x/keymaps/konstantin/keymap.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/keyboards/kbdfans/kbd6x/keymaps/konstantin/keymap.c b/keyboards/kbdfans/kbd6x/keymaps/konstantin/keymap.c
index 8f2305ed4c..a8a369a611 100644
--- a/keyboards/kbdfans/kbd6x/keymaps/konstantin/keymap.c
+++ b/keyboards/kbdfans/kbd6x/keymaps/konstantin/keymap.c
@@ -43,8 +43,8 @@ static void check_light_layer(layer_state_t state) {
last_checked_layer = true;
}
-static void check_light_led(uint8_t leds) {
- if (IS_LED_ON(leds, USB_LED_CAPS_LOCK)) {
+static void check_light_led(led_t led_state) {
+ if (led_state.caps_lock) {
caps_light();
} else if (IS_LAYER_ON(L_FN)) {
fn_light();
@@ -57,7 +57,7 @@ static void check_light_led(uint8_t leds) {
static void inline check_light(void) {
last_checked_layer
? check_light_layer(layer_state)
- : check_light_led(host_keyboard_leds());
+ : check_light_led(host_keyboard_led_state());
}
void eeconfig_init_keymap(void) {