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/converter/modelm101/modelm101.c | 26 ++++++++------------------ 1 file changed, 8 insertions(+), 18 deletions(-) (limited to 'keyboards/converter/modelm101') diff --git a/keyboards/converter/modelm101/modelm101.c b/keyboards/converter/modelm101/modelm101.c index 708259cab4..02d861b917 100644 --- a/keyboards/converter/modelm101/modelm101.c +++ b/keyboards/converter/modelm101/modelm101.c @@ -15,7 +15,7 @@ */ #include "modelm101.h" -void keyboard_pre_init_kb(void) { +void led_init_ports(void) { /* Setting status LEDs pins to output and +5V (off) */ setPinOutput(B4); setPinOutput(B5); @@ -25,22 +25,12 @@ void keyboard_pre_init_kb(void) { writePinHigh(B6); } -void led_set_kb(uint8_t usb_led) { - if (usb_led & (1<