From ab083c7ecff4f8a576d858745ab353f7937a1b94 Mon Sep 17 00:00:00 2001 From: tmk Date: Sat, 7 Nov 2020 16:39:15 +0900 Subject: [PATCH] core: Clean up code of Locking key support --- tmk_core/common/action.c | 94 ++++++++++++++++------------------------ 1 file changed, 38 insertions(+), 56 deletions(-) diff --git a/tmk_core/common/action.c b/tmk_core/common/action.c index 85a0631f..80eb3a8a 100644 --- a/tmk_core/common/action.c +++ b/tmk_core/common/action.c @@ -375,37 +375,28 @@ void register_code(uint8_t code) } #ifdef LOCKING_SUPPORT_ENABLE - else if (KC_LOCKING_CAPS == code) { -#ifdef LOCKING_RESYNC_ENABLE - // Resync: ignore if caps lock already is on - if (host_keyboard_leds() & (1<