summaryrefslogtreecommitdiff
path: root/tmk_core/protocol/vusb/protocol.c
diff options
context:
space:
mode:
Diffstat (limited to 'tmk_core/protocol/vusb/protocol.c')
-rw-r--r--tmk_core/protocol/vusb/protocol.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/tmk_core/protocol/vusb/protocol.c b/tmk_core/protocol/vusb/protocol.c
index 947c3383f1..644e77e021 100644
--- a/tmk_core/protocol/vusb/protocol.c
+++ b/tmk_core/protocol/vusb/protocol.c
@@ -113,12 +113,13 @@ void protocol_setup(void) {
#endif
}
-void protocol_init(void) {
+void protocol_pre_init(void) {
setup_usb();
sei();
+}
+void protocol_post_init(void) {
host_set_driver(vusb_driver());
-
wait_ms(50);
}