]> git.friedersdorff.com Git - max/tmk_keyboard.git/commitdiff
core: Fix Oneshot mods key repeat problem #474
authortmk <hasu@tmk-kbd.com>
Tue, 30 May 2017 16:15:45 +0000 (01:15 +0900)
committertmk <hasu@tmk-kbd.com>
Tue, 30 May 2017 16:15:45 +0000 (01:15 +0900)
tmk_core/protocol/lufa/lufa.c

index 93fe9a2facd586e369a34ef2daf6eefc6525a913..076c8c8d9cf0846f03ef3e5f9fb35119a3b846aa 100644 (file)
@@ -431,7 +431,7 @@ static void send_keyboard(report_keyboard_t *report)
         Endpoint_SelectEndpoint(NKRO_IN_EPNUM);
 
         /* Check if write ready for a polling interval around 1ms */
-        while (timeout-- && !Endpoint_IsReadWriteAllowed()) _delay_us(4);
+        while (timeout-- && !Endpoint_IsReadWriteAllowed()) _delay_us(8);
         if (!Endpoint_IsReadWriteAllowed()) return;
 
         /* Write Keyboard Report Data */