diff options
author | tmk <nobody@nowhere> | 2011-05-04 13:42:34 +0900 |
---|---|---|
committer | tmk <nobody@nowhere> | 2011-05-04 13:42:34 +0900 |
commit | b0b6c333320216492ea63979e9a01f5c4cb090db (patch) | |
tree | d84d642856a1f33398413df782d71ac01b7b02fb /pjrc/usb.c | |
parent | 5de62e26a04bd99a1f70f13270ab95e6b3e85d59 (diff) |
ad hoc fix for IDLE bug which affects on Mac only.
Diffstat (limited to 'pjrc/usb.c')
-rwxr-xr-x[-rw-r--r--] | pjrc/usb.c | 3 |
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++; |