summaryrefslogtreecommitdiff
path: root/pjrc/usb.c
diff options
context:
space:
mode:
Diffstat (limited to 'pjrc/usb.c')
-rwxr-xr-x[-rw-r--r--]pjrc/usb.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/pjrc/usb.c b/pjrc/usb.c
index 3cfe947310..b2c18d98dd 100644..100755
--- a/pjrc/usb.c
+++ b/pjrc/usb.c
@@ -681,7 +681,8 @@ ISR(USB_GEN_vect)
UEINTX = 0x3A;
}
}
- if (usb_keyboard_idle_config && (++div4 & 3) == 0) {
+ /* TODO: should keep IDLE rate on each keyboard interface */
+ if (!keyboard_nkro && usb_keyboard_idle_config && (++div4 & 3) == 0) {
UENUM = KBD_ENDPOINT;
if (UEINTX & (1<<RWAL)) {
usb_keyboard_idle_count++;