From: tmk Date: Thu, 20 Sep 2018 13:14:03 +0000 (+0900) Subject: core: lufa: Fix timeout of send_keyboard X-Git-Url: https://git.friedersdorff.com/?a=commitdiff_plain;h=5b9da20efa837973ed4e9cde49b173bcd05e6ce6;p=max%2Ftmk_keyboard.git core: lufa: Fix timeout of send_keyboard Change 128*40us(5.12ms) to 128*80us(10.24ms) for 6KRO --- diff --git a/tmk_core/protocol/lufa/lufa.c b/tmk_core/protocol/lufa/lufa.c index 4dce8adc..cfd76c2e 100644 --- a/tmk_core/protocol/lufa/lufa.c +++ b/tmk_core/protocol/lufa/lufa.c @@ -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 */