diff options
author | Wei-Han Chen <stimim@google.com> | 2018-10-29 16:42:25 +0800 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2018-10-30 01:04:54 -0700 |
commit | 7942a221ab935222ef0f9e84af2a77de7b059764 (patch) | |
tree | 1430e96cc037ae21321a08bcb288b0159af86ab0 /chip/stm32 | |
parent | cc80d2bed27d5fee1cf046641c64b7dd2a12e00c (diff) | |
download | chrome-ec-7942a221ab935222ef0f9e84af2a77de7b059764.tar.gz |
usb_hid_keyboard: keycode column and row are switched
columns and rows of keycodes array are switched in CL:1285291.
BRANCH=none
BUG=None
TEST=test on whiskers
Signed-off-by: Wei-Han Chen <stimim@chromium.org>
Change-Id: I98b28a0765d011a9085202ab3250cd2d9aa85ccd
Reviewed-on: https://chromium-review.googlesource.com/1304160
Commit-Ready: Wei-Han Chen <stimim@chromium.org>
Tested-by: Wei-Han Chen <stimim@chromium.org>
Reviewed-by: Daisuke Nojiri <dnojiri@chromium.org>
Diffstat (limited to 'chip/stm32')
-rw-r--r-- | chip/stm32/usb_hid_keyboard.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/chip/stm32/usb_hid_keyboard.c b/chip/stm32/usb_hid_keyboard.c index 7ce74940ed..9503e99c1e 100644 --- a/chip/stm32/usb_hid_keyboard.c +++ b/chip/stm32/usb_hid_keyboard.c @@ -635,7 +635,7 @@ DECLARE_HOOK(HOOK_INIT, tablet_mode_change, HOOK_PRIO_DEFAULT+1); void keyboard_state_changed(int row, int col, int is_pressed) { - uint8_t keycode = keycodes[row][col]; + uint8_t keycode = keycodes[col][row]; if (!keycode) { CPRINTF("Unknown key at %d/%d\n", row, col); |