From 5b9da20efa837973ed4e9cde49b173bcd05e6ce6 Mon Sep 17 00:00:00 2001 From: tmk Date: Thu, 20 Sep 2018 22:14:03 +0900 Subject: [PATCH] core: lufa: Fix timeout of send_keyboard Change 128*40us(5.12ms) to 128*80us(10.24ms) for 6KRO --- tmk_core/protocol/lufa/lufa.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 */ -- 2.44.0