diff options
author | Ryan <fauxpark@gmail.com> | 2020-12-23 07:33:04 +1100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-12-23 07:33:04 +1100 |
commit | 78b2f120e50e3db7c6f2b114907dbe50d82e6090 (patch) | |
tree | 20f08fe72e7570e91eda1e7655cd3d0de3026678 /tmk_core/protocol/vusb | |
parent | ce7d3855f479c57cc050993df5ea7d1479e0cdb9 (diff) |
V-USB: Fix initial dropped keypress (#11263)
Diffstat (limited to 'tmk_core/protocol/vusb')
-rw-r--r-- | tmk_core/protocol/vusb/main.c | 5 |
1 files changed, 2 insertions, 3 deletions
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 |