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/vusb/protocol.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/vusb/protocol.c')
-rw-r--r-- | tmk_core/protocol/vusb/protocol.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/tmk_core/protocol/vusb/protocol.c b/tmk_core/protocol/vusb/protocol.c index 947c3383f..644e77e02 100644 --- a/tmk_core/protocol/vusb/protocol.c +++ b/tmk_core/protocol/vusb/protocol.c | |||
@@ -113,12 +113,13 @@ void protocol_setup(void) { | |||
113 | #endif | 113 | #endif |
114 | } | 114 | } |
115 | 115 | ||
116 | void protocol_init(void) { | 116 | void protocol_pre_init(void) { |
117 | setup_usb(); | 117 | setup_usb(); |
118 | sei(); | 118 | sei(); |
119 | } | ||
119 | 120 | ||
121 | void protocol_post_init(void) { | ||
120 | host_set_driver(vusb_driver()); | 122 | host_set_driver(vusb_driver()); |
121 | |||
122 | wait_ms(50); | 123 | wait_ms(50); |
123 | } | 124 | } |
124 | 125 | ||