aboutsummaryrefslogtreecommitdiff
path: root/quantum/keyboard.c
diff options
context:
space:
mode:
authorJoel Challis <git@zvecr.com>2024-11-21 13:02:49 +0000
committerGitHub <noreply@github.com>2024-11-21 13:02:49 +0000
commit968a611476c7add787f737be9521d2968d1f4451 (patch)
tree57038a01ca75e2a33870696a84665d452ce6cc98 /quantum/keyboard.c
parent65a8a5ff69289a5cb8fce6555b774573e4452a79 (diff)
Review fixes for layer lock feature (#24627)
Diffstat (limited to 'quantum/keyboard.c')
-rw-r--r--quantum/keyboard.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/quantum/keyboard.c b/quantum/keyboard.c
index 8db81a4b39..d7836cf36e 100644
--- a/quantum/keyboard.c
+++ b/quantum/keyboard.c
@@ -140,9 +140,9 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#ifdef OS_DETECTION_ENABLE
# include "os_detection.h"
#endif
-#if defined(LAYER_LOCK_ENABLE) && LAYER_LOCK_IDLE_TIMEOUT > 0
+#ifdef LAYER_LOCK_ENABLE
# include "layer_lock.h"
-#endif // LAYER_LOCK_ENABLE
+#endif
static uint32_t last_input_modification_time = 0;
uint32_t last_input_activity_time(void) {
@@ -659,7 +659,7 @@ void quantum_task(void) {
secure_task();
#endif
-#if defined(LAYER_LOCK_ENABLE) && LAYER_LOCK_IDLE_TIMEOUT > 0
+#ifdef LAYER_LOCK_ENABLE
layer_lock_task();
#endif
}