1
0
Fork 0

added USB_EXTRA feature to HHKB/V-USB

This commit is contained in:
tmk 2011-05-21 10:28:57 +09:00
parent 068c31a7ba
commit 74f7e19863
7 changed files with 166 additions and 78 deletions

View file

@ -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++;