summaryrefslogtreecommitdiffstats
path: root/tmk_core/protocol
diff options
context:
space:
mode:
authorRyan <fauxpark@gmail.com>2020-12-23 07:33:04 +1100
committerGitHub <noreply@github.com>2020-12-23 07:33:04 +1100
commit78b2f120e50e3db7c6f2b114907dbe50d82e6090 (patch)
tree20f08fe72e7570e91eda1e7655cd3d0de3026678 /tmk_core/protocol
parentce7d3855f479c57cc050993df5ea7d1479e0cdb9 (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