V-USB: Fix initial dropped keypress (#11263)

master
Ryan 2020-12-23 07:33:04 +11:00 committed by GitHub
parent ce7d3855f4
commit 78b2f120e5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 3 deletions

View File

@ -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