forked from mirrors/qmk_userspace
change keyboard report descriptor for NKRO.
It uses 1byte for modifiers and 15bytes(120bits) for keys now.
This commit is contained in:
parent
51f17f0231
commit
1ed336a064
4 changed files with 96 additions and 48 deletions
|
@ -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];
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue