summaryrefslogtreecommitdiff
path: root/tmk_core/protocol/lufa/lufa.c
diff options
context:
space:
mode:
authorJoel Challis <git@zvecr.com>2021-11-02 18:53:46 +0000
committerGitHub <noreply@github.com>2021-11-02 18:53:46 +0000
commit634e42b2b47d32ae8aa933599e63e3761939e3f5 (patch)
tree5079db1b33ae4b13c97339fc36573d967384da15 /tmk_core/protocol/lufa/lufa.c
parent0ecd4926b20b3a3240dcb29f5184853c1ec192b8 (diff)
Revert to old init order for host driver (#15029)
* Partially revert 14888
Diffstat (limited to 'tmk_core/protocol/lufa/lufa.c')
-rw-r--r--tmk_core/protocol/lufa/lufa.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/tmk_core/protocol/lufa/lufa.c b/tmk_core/protocol/lufa/lufa.c
index 80781d2f37..e3be96d93d 100644
--- a/tmk_core/protocol/lufa/lufa.c
+++ b/tmk_core/protocol/lufa/lufa.c
@@ -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) {