added USB_EXTRA feature to HHKB/V-USB
This commit is contained in:
parent
068c31a7ba
commit
74f7e19863
7 changed files with 166 additions and 78 deletions
|
@ -682,7 +682,11 @@ ISR(USB_GEN_vect)
|
|||
}
|
||||
}
|
||||
/* TODO: should keep IDLE rate on each keyboard interface */
|
||||
#ifdef USB_NKRO_ENABLE
|
||||
if (!keyboard_nkro && usb_keyboard_idle_config && (++div4 & 3) == 0) {
|
||||
#else
|
||||
if (usb_keyboard_idle_config && (++div4 & 3) == 0) {
|
||||
#endif
|
||||
UENUM = KBD_ENDPOINT;
|
||||
if (UEINTX & (1<<RWAL)) {
|
||||
usb_keyboard_idle_count++;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue