summaryrefslogtreecommitdiffstats
path: root/usb_keyboard.c
diff options
context:
space:
mode:
authortmk <nobody@nowhere>2010-12-11 23:20:49 +0900
committertmk <nobody@nowhere>2010-12-11 23:20:49 +0900
commit1ed336a06499c1baee2421141d59d115f0ee3c4b (patch)
tree0695d24880a3a808967eaef4d75e8b17a8388e86 /usb_keyboard.c
parent51f17f02317700e64b3c1113fe230d78bac7fecd (diff)
change keyboard report descriptor for NKRO.
It uses 1byte for modifiers and 15bytes(120bits) for keys now.
Diffstat (limited to 'usb_keyboard.c')
-rw-r--r--usb_keyboard.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/usb_keyboard.c b/usb_keyboard.c
index 7055a653fb..3b071e336f 100644
--- a/usb_keyboard.c
+++ b/usb_keyboard.c
@@ -211,7 +211,8 @@ static inline int8_t _send_report(usb_keyboard_report_t *report, uint8_t endpoin
UENUM = endpoint;
}
UEDATX = report->mods;
- UEDATX = 0;
+ if (!usb_keyboard_nkro)
+ UEDATX = 0;
for (uint8_t i = keys_start; i < keys_end; i++) {
UEDATX = report->keys[i];
}