summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRandall Spangler <rspangler@chromium.org>2012-10-18 13:46:38 -0700
committerRandall Spangler <rspangler@chromium.org>2012-10-18 13:59:29 -0700
commitd598b64277a3d876e70d65e50073fa8216a9179a (patch)
treeb9fdee72cec0791d92a90a7832e202b1f340f704
parent113dd1ba16900d1ad7c0d656205a709f7e0a86f1 (diff)
downloadchrome-ec-d598b64277a3d876e70d65e50073fa8216a9179a.tar.gz
link: Fix checking runtime keys
This accidentally got disabled when printing keyboard scan state was turned off by default. BUG=chrome-os-partner:15466 BRANCH=link TEST=alt+volup+R should reboot system Then from console, ksstate on Then press keys; KB state should print on console Change-Id: I7d410b56210fda0c73c65d9d76ccc7b4e873516c Signed-off-by: Randall Spangler <rspangler@chromium.org> Reviewed-on: https://gerrit.chromium.org/gerrit/35971 Reviewed-by: Simon Glass <sjg@chromium.org>
-rw-r--r--chip/lm4/keyboard_scan.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/chip/lm4/keyboard_scan.c b/chip/lm4/keyboard_scan.c
index f2f26faca2..d776a4f6ed 100644
--- a/chip/lm4/keyboard_scan.c
+++ b/chip/lm4/keyboard_scan.c
@@ -328,8 +328,9 @@ static int check_keys_changed(uint8_t *state)
}
}
- if (any_change && print_state_changes) {
- print_state(state, "state");
+ if (any_change) {
+ if (print_state_changes)
+ print_state(state, "state");
#ifdef PRINT_SCAN_TIMES
/* Print delta times from now back to each previous scan */