diff options
author | QMK Bot <hello@qmk.fm> | 2022-12-09 01:43:01 +0000 |
---|---|---|
committer | QMK Bot <hello@qmk.fm> | 2022-12-09 01:43:01 +0000 |
commit | 57bf0601986744a160cd8c8c1956fa207f9067be (patch) | |
tree | d7b0709c0e6becf02324c9ee26e110fd0752de8c /keyboards/xiudi | |
parent | 701747ad4feee87fca177beb50823b522cff6e6a (diff) | |
parent | 99cd0b13e109bb14f1e5af023c5fcb5e50a78e0a (diff) |
Merge remote-tracking branch 'origin/master' into develop
Diffstat (limited to 'keyboards/xiudi')
-rw-r--r-- | keyboards/xiudi/xd60/xd60.c | 32 |
1 files changed, 10 insertions, 22 deletions
diff --git a/keyboards/xiudi/xd60/xd60.c b/keyboards/xiudi/xd60/xd60.c index c3b63e5eaf..9a0a91e948 100644 --- a/keyboards/xiudi/xd60/xd60.c +++ b/keyboards/xiudi/xd60/xd60.c @@ -8,26 +8,14 @@ extern inline void xd60_caps_led_off(void); extern inline void xd60_bl_led_off(void); -void led_set_kb(uint8_t usb_led) { - // put your keyboard LED indicator (ex: Caps Lock LED) toggling code here - - if (usb_led & (1<<USB_LED_CAPS_LOCK)) { - xd60_caps_led_on(); - } else { - xd60_caps_led_off(); - } - - // if (usb_led & (1<<USB_LED_NUM_LOCK)) { - // xd60_esc_led_on(); - // } else { - // xd60_esc_led_off(); - // } - - // if (usb_led & (1<<USB_LED_SCROLL_LOCK)) { - // xd60_fn_led_on(); - // } else { - // xd60_fn_led_off(); - // } - - led_set_user(usb_led); +bool led_update_kb(led_t led_state) { + bool res = led_update_user(led_state); + if(res) { + if (led_state.caps_lock) { + xd60_caps_led_on(); + } else { + xd60_caps_led_off(); + } + } + return res; } |