summaryrefslogtreecommitdiff
path: root/include/keyboard_scan.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/keyboard_scan.h')
-rw-r--r--include/keyboard_scan.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/keyboard_scan.h b/include/keyboard_scan.h
index 94457dd16d..bce5046c9e 100644
--- a/include/keyboard_scan.h
+++ b/include/keyboard_scan.h
@@ -56,7 +56,7 @@ enum boot_key {
BOOT_KEY_LEFT_SHIFT = (1 << 2),
};
-#ifdef HAS_TASK_KEYSCAN
+#if defined(HAS_TASK_KEYSCAN) && defined(CONFIG_KEYBOARD_BOOT_KEYS)
/**
* Returns mask of all the keys held down at boot time in addition to the
* keyboard-controlled reset keys. If more than one boot key is held, mask bits