diff options
author | Joel Challis <git@zvecr.com> | 2022-01-22 21:17:02 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-01-22 21:17:02 +0000 |
commit | 6e83b449409f7fe479210a9fab808e8bcae64977 (patch) | |
tree | 0429c5a810d39fbd423350566d476fa3f798db27 /quantum/keyboard.c | |
parent | 448a90f6b0b68ef074b1a19a081eceaafcc7425e (diff) |
Align location of some host led logic (#15954)
* Align location of host led logic
* Move more
* align ifdefs
* Fix up includes
* Move callback defs
* Convert comment to build message
Diffstat (limited to 'quantum/keyboard.c')
-rw-r--r-- | quantum/keyboard.c | 26 |
1 files changed, 0 insertions, 26 deletions
diff --git a/quantum/keyboard.c b/quantum/keyboard.c index fa20c675c3..60f5afb7a2 100644 --- a/quantum/keyboard.c +++ b/quantum/keyboard.c @@ -350,32 +350,6 @@ void keyboard_init(void) { keyboard_post_init_kb(); /* Always keep this last */ } -/** \brief keyboard set leds - * - * FIXME: needs doc - */ -void keyboard_set_leds(uint8_t leds) { - if (debug_keyboard) { - debug("keyboard_set_led: "); - debug_hex8(leds); - debug("\n"); - } - led_set(leds); -} - -/** \brief set host led state - * - * Only sets state if change detected - */ -void led_task(void) { - static uint8_t led_status = 0; - // update LED - if (led_status != host_keyboard_leds()) { - led_status = host_keyboard_leds(); - keyboard_set_leds(led_status); - } -} - /** \brief key_event_task * * This function is responsible for calling into other systems when they need to respond to electrical switch press events. |