diff options
Diffstat (limited to 'pjrc/usb.c')
-rwxr-xr-x | pjrc/usb.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/pjrc/usb.c b/pjrc/usb.c index b2c18d98dd..711c0e68a0 100755 --- a/pjrc/usb.c +++ b/pjrc/usb.c @@ -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++; |