summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--chip/stm32/keyboard_scan.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/chip/stm32/keyboard_scan.c b/chip/stm32/keyboard_scan.c
index 153c976c10..47e3dac039 100644
--- a/chip/stm32/keyboard_scan.c
+++ b/chip/stm32/keyboard_scan.c
@@ -316,8 +316,11 @@ static int check_keys_changed(void)
CPUTS("]\n");
if (num_press == 3) {
- if (check_warm_reboot_keys())
+ if (check_warm_reboot_keys()) {
+ keyboard_clear_state();
system_warm_reboot();
+ return 0;
+ }
}
if (kb_fifo_add(raw_state) == EC_SUCCESS)