diff options
Diffstat (limited to 'hid/src/main.cpp')
-rw-r--r-- | hid/src/main.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/hid/src/main.cpp b/hid/src/main.cpp index ba26be5c..98faff25 100644 --- a/hid/src/main.cpp +++ b/hid/src/main.cpp @@ -20,8 +20,7 @@ INLINE void cmdResetHid() { INLINE void cmdKeyEvent() { uint8_t state = CMD_SERIAL.read(); KeyboardKeycode code = keymap((uint8_t)CMD_SERIAL.read()); - CMD_SERIAL.read(); // unused now - if (code) { + if (code != KEY_ERROR_UNDEFINED) { if (state) { Keyboard.press(code); } else { |