diff options
author | Jouke Witteveen <j.witteveen@gmail.com> | 2022-10-15 21:09:03 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-10-15 15:09:03 -0400 |
commit | 2ee573fc5f9076d1773bd17c851cd581cc67582f (patch) | |
tree | 6cf109bd5fd93eba39bf72a77a7e362f4980726c /keyboards/kc60 | |
parent | ad8630bd7229937877aa9a29693bbb8942a27abe (diff) |
led_update_kb -> led_update_ports where appropriate (#18716)
Following #14452, less boilerplate is needed to customize indicator led
control.
Diffstat (limited to 'keyboards/kc60')
-rw-r--r-- | keyboards/kc60/kc60.c | 14 |
1 files changed, 5 insertions, 9 deletions
diff --git a/keyboards/kc60/kc60.c b/keyboards/kc60/kc60.c index 52059a8c40..afba2da57e 100644 --- a/keyboards/kc60/kc60.c +++ b/keyboards/kc60/kc60.c @@ -1,13 +1,9 @@ #include "kc60.h" -bool led_update_kb(led_t led_state) { - if (led_update_user(led_state)) { - if (led_state.caps_lock) { - setPinOutput(B2); - } else { - setPinInput(B2); - } +void led_update_ports(led_t led_state) { + if (led_state.caps_lock) { + setPinOutput(B2); + } else { + setPinInput(B2); } - - return true; } |