summaryrefslogtreecommitdiff
path: root/chip/stm32/usb_hid_keyboard.c
diff options
context:
space:
mode:
Diffstat (limited to 'chip/stm32/usb_hid_keyboard.c')
-rw-r--r--chip/stm32/usb_hid_keyboard.c2
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);