]> git.friedersdorff.com Git - max/tmk_keyboard.git/blobdiff - pjrc/usb.c
added USB_EXTRA feature to HHKB/V-USB
[max/tmk_keyboard.git] / pjrc / usb.c
old mode 100644 (file)
new mode 100755 (executable)
index 3cfe947..711c0e6
@@ -681,7 +681,12 @@ ISR(USB_GEN_vect)
                                UEINTX = 0x3A;
                        }
                }
+                /* 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++;