Revert to old init order for host driver (#15029)

* Partially revert 14888
This commit is contained in:
Joel Challis
2021-11-02 18:53:46 +00:00
committed by GitHub
parent 0ecd4926b2
commit 634e42b2b4
4 changed files with 21 additions and 11 deletions

View File

@@ -1072,7 +1072,7 @@ void protocol_setup(void) {
usb_device_state_init();
}
void protocol_init(void) {
void protocol_pre_init(void) {
setup_usb();
sei();
@@ -1094,10 +1094,10 @@ void protocol_init(void) {
#else
USB_USBTask();
#endif
host_set_driver(&lufa_driver);
}
void protocol_post_init(void) { host_set_driver(&lufa_driver); }
void protocol_pre_task(void) {
#if !defined(NO_USB_STARTUP_CHECK)
if (USB_DeviceState == DEVICE_STATE_Suspended) {