From 5856ea3ce2fee25b7c5be4498ca35620c20fbd23 Mon Sep 17 00:00:00 2001 From: Ryan Date: Wed, 23 Dec 2020 07:33:04 +1100 Subject: [PATCH] V-USB: Fix initial dropped keypress (#11263) --- tmk_core/protocol/vusb/main.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/tmk_core/protocol/vusb/main.c b/tmk_core/protocol/vusb/main.c index 0e3447d926d1..2e8bb2fbbc71 100644 --- a/tmk_core/protocol/vusb/main.c +++ b/tmk_core/protocol/vusb/main.c @@ -98,14 +98,13 @@ int main(void) { clock_prescale_set(clock_div_1); #endif keyboard_setup(); - - host_set_driver(vusb_driver()); setup_usb(); sei(); + keyboard_init(); + host_set_driver(vusb_driver()); wait_ms(50); - keyboard_init(); #ifdef SLEEP_LED_ENABLE sleep_led_init(); #endif