]> git.friedersdorff.com Git - max/tmk_keyboard.git/commitdiff
core: lufa: Fix timeout of send_keyboard
authortmk <hasu@tmk-kbd.com>
Thu, 20 Sep 2018 13:14:03 +0000 (22:14 +0900)
committertmk <hasu@tmk-kbd.com>
Sun, 23 Sep 2018 03:36:18 +0000 (12:36 +0900)
Change 128*40us(5.12ms) to 128*80us(10.24ms) for 6KRO

tmk_core/protocol/lufa/lufa.c

index 4dce8adc9993822cd3ccf7627bf5b44338218871..cfd76c2edfa6c6503325b5d77475c9fc51175df1 100644 (file)
@@ -468,7 +468,7 @@ static void send_keyboard(report_keyboard_t *report)
         Endpoint_SelectEndpoint(KEYBOARD_IN_EPNUM);
 
         /* Check if write ready for a polling interval around 10ms */
-        while (timeout-- && !Endpoint_IsReadWriteAllowed()) _delay_us(40);
+        while (timeout-- && !Endpoint_IsReadWriteAllowed()) _delay_us(80);
         if (!Endpoint_IsReadWriteAllowed()) return;
 
         /* Write Keyboard Report Data */