Skip to content

Commit

Permalink
ad hoc fix for IDLE bug which affects on Mac only.
Browse files Browse the repository at this point in the history
  • Loading branch information
yashikno committed May 4, 2011
1 parent 5de62e2 commit b0b6c33
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pjrc/usb.c 100644 → 100755
Expand Up @@ -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++;
Expand Down

0 comments on commit b0b6c33

Please sign in to comment.