summaryrefslogtreecommitdiff
path: root/tmk_core/protocol
diff options
context:
space:
mode:
authorRyan <fauxpark@gmail.com>2020-12-23 07:33:04 +1100
committerDrashna Jael're <drashna@live.com>2021-01-12 22:46:10 -0800
commiteaec0a1bfd22928bf6e679969cd7deeba1c834dc (patch)
treebe1390096a5819940e2cd2e17389f7ed0c4d2018 /tmk_core/protocol
parentdc9d8297fa2c93c7f0695c544ffa1296cae02cf2 (diff)
V-USB: Fix initial dropped keypress (#11263)
Diffstat (limited to 'tmk_core/protocol')
-rw-r--r--tmk_core/protocol/vusb/main.c5
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