]> git.friedersdorff.com Git - max/tmk_keyboard.git/commitdiff
ad hoc fix for IDLE bug which affects on Mac only.
authortmk <nobody@nowhere>
Wed, 4 May 2011 04:42:34 +0000 (13:42 +0900)
committertmk <nobody@nowhere>
Wed, 4 May 2011 04:42:34 +0000 (13:42 +0900)
pjrc/usb.c [changed mode: 0644->0755]

old mode 100644 (file)
new mode 100755 (executable)
index 3cfe947..b2c18d9
@@ -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++;