From 78b2f120e50e3db7c6f2b114907dbe50d82e6090 Mon Sep 17 00:00:00 2001 From: Ryan Date: Wed, 23 Dec 2020 07:33:04 +1100 Subject: V-USB: Fix initial dropped keypress (#11263) --- tmk_core/protocol/vusb/main.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'tmk_core/protocol') diff --git a/tmk_core/protocol/vusb/main.c b/tmk_core/protocol/vusb/main.c index 0e3447d926..2e8bb2fbbc 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 -- cgit v1.2.1