aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--keyboards/xd87/xd87.c14
1 files changed, 6 insertions, 8 deletions
diff --git a/keyboards/xd87/xd87.c b/keyboards/xd87/xd87.c
index e14480b05..a41b4f2db 100644
--- a/keyboards/xd87/xd87.c
+++ b/keyboards/xd87/xd87.c
@@ -36,16 +36,14 @@ bool process_record_kb(uint16_t keycode, keyrecord_t *record) {
36 return process_record_user(keycode, record); 36 return process_record_user(keycode, record);
37} 37}
38 38
39void led_set_kb(uint8_t usb_led) { 39bool led_update_kb(led_t led_state) {
40 // put your keyboard LED indicator (ex: Caps Lock LED) toggling code here 40 bool res = led_update_user(led_state);
41 41
42 if (IS_LED_ON(usb_led, USB_LED_CAPS_LOCK)) { 42 if (res) {
43 writePinLow(E2); 43 writePin(E2, !led_state.caps_lock);
44 } else { 44 }
45 writePinHigh(E2);
46 }
47 45
48 led_set_user(usb_led); 46 return res;
49} 47}
50 48
51void led_init_ports(void) { 49void led_init_ports(void) {