From 99cd0b13e109bb14f1e5af023c5fcb5e50a78e0a Mon Sep 17 00:00:00 2001 From: Joel Challis Date: Fri, 9 Dec 2022 01:42:22 +0000 Subject: Refactor some led_set_kb instances (#19179) * Refactor some led_set_kb instances * Apply suggestions from code review Co-authored-by: Ryan Co-authored-by: Ryan --- keyboards/xiudi/xd60/xd60.c | 32 ++++++++++---------------------- 1 file changed, 10 insertions(+), 22 deletions(-) (limited to 'keyboards/xiudi') 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<