diff options
Diffstat (limited to 'chip/lm4/keyboard_scan.c')
-rw-r--r-- | chip/lm4/keyboard_scan.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/chip/lm4/keyboard_scan.c b/chip/lm4/keyboard_scan.c index 1d25b1937b..03534260fc 100644 --- a/chip/lm4/keyboard_scan.c +++ b/chip/lm4/keyboard_scan.c @@ -11,8 +11,8 @@ #include "keyboard.h" #include "keyboard_scan.h" #include "keyboard_scan_stub.h" -#include "power_button.h" #include "registers.h" +#include "switch.h" #include "system.h" #include "task.h" #include "timer.h" @@ -105,7 +105,7 @@ static void enter_polling_mode(void) static int is_scanning_enabled(void) { /* Scan only if enabled AND lid is open. */ - return lm4_get_scanning_enabled() && power_lid_open_debounced(); + return lm4_get_scanning_enabled() && switch_get_lid_open(); } /** |