diff options
Diffstat (limited to 'keyboards/xiudi/xd75/keymaps/boy_314/keymap.c')
-rw-r--r-- | keyboards/xiudi/xd75/keymaps/boy_314/keymap.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/keyboards/xiudi/xd75/keymaps/boy_314/keymap.c b/keyboards/xiudi/xd75/keymaps/boy_314/keymap.c index 1c5aa90627..1f3897f484 100644 --- a/keyboards/xiudi/xd75/keymaps/boy_314/keymap.c +++ b/keyboards/xiudi/xd75/keymaps/boy_314/keymap.c @@ -126,16 +126,17 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { }; void matrix_init_user(void) { - if (!(host_keyboard_leds() & (1<<USB_LED_NUM_LOCK))) { + if (!host_keyboard_led_state().num_lock) { register_code(KC_NUM_LOCK); unregister_code(KC_NUM_LOCK); } } -void led_set_user(uint8_t usb_led) { - if (usb_led & (1<<USB_LED_CAPS_LOCK)) { +bool led_update_user(led_t led_state) { + if (led_state.caps_lock) { rgblight_mode(18); } else { rgblight_mode(14); } + return false; } |