diff options
author | Joel Challis <git@zvecr.com> | 2021-11-02 18:53:46 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-11-02 18:53:46 +0000 |
commit | 634e42b2b47d32ae8aa933599e63e3761939e3f5 (patch) | |
tree | 5079db1b33ae4b13c97339fc36573d967384da15 /tmk_core/protocol/lufa/lufa.c | |
parent | 0ecd4926b20b3a3240dcb29f5184853c1ec192b8 (diff) | |
download | qmk_firmware-634e42b2b47d32ae8aa933599e63e3761939e3f5.tar.gz qmk_firmware-634e42b2b47d32ae8aa933599e63e3761939e3f5.zip |
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.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tmk_core/protocol/lufa/lufa.c b/tmk_core/protocol/lufa/lufa.c index 80781d2f3..e3be96d93 100644 --- a/tmk_core/protocol/lufa/lufa.c +++ b/tmk_core/protocol/lufa/lufa.c | |||
@@ -1072,7 +1072,7 @@ void protocol_setup(void) { | |||
1072 | usb_device_state_init(); | 1072 | usb_device_state_init(); |
1073 | } | 1073 | } |
1074 | 1074 | ||
1075 | void protocol_init(void) { | 1075 | void protocol_pre_init(void) { |
1076 | setup_usb(); | 1076 | setup_usb(); |
1077 | sei(); | 1077 | sei(); |
1078 | 1078 | ||
@@ -1094,10 +1094,10 @@ void protocol_init(void) { | |||
1094 | #else | 1094 | #else |
1095 | USB_USBTask(); | 1095 | USB_USBTask(); |
1096 | #endif | 1096 | #endif |
1097 | |||
1098 | host_set_driver(&lufa_driver); | ||
1099 | } | 1097 | } |
1100 | 1098 | ||
1099 | void protocol_post_init(void) { host_set_driver(&lufa_driver); } | ||
1100 | |||
1101 | void protocol_pre_task(void) { | 1101 | void protocol_pre_task(void) { |
1102 | #if !defined(NO_USB_STARTUP_CHECK) | 1102 | #if !defined(NO_USB_STARTUP_CHECK) |
1103 | if (USB_DeviceState == DEVICE_STATE_Suspended) { | 1103 | if (USB_DeviceState == DEVICE_STATE_Suspended) { |