diff options
Diffstat (limited to 'tmk_core/protocol/chibios/main.c')
| -rw-r--r-- | tmk_core/protocol/chibios/main.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tmk_core/protocol/chibios/main.c b/tmk_core/protocol/chibios/main.c index e07c181fc..63e4c99d2 100644 --- a/tmk_core/protocol/chibios/main.c +++ b/tmk_core/protocol/chibios/main.c | |||
| @@ -163,6 +163,7 @@ int main(void) { | |||
| 163 | keyboard_setup(); | 163 | keyboard_setup(); |
| 164 | 164 | ||
| 165 | /* Init USB */ | 165 | /* Init USB */ |
| 166 | usb_event_queue_init(); | ||
| 166 | init_usb_driver(&USB_DRIVER); | 167 | init_usb_driver(&USB_DRIVER); |
| 167 | 168 | ||
| 168 | #ifdef MIDI_ENABLE | 169 | #ifdef MIDI_ENABLE |
| @@ -221,6 +222,8 @@ int main(void) { | |||
| 221 | 222 | ||
| 222 | /* Main loop */ | 223 | /* Main loop */ |
| 223 | while (true) { | 224 | while (true) { |
| 225 | usb_event_queue_task(); | ||
| 226 | |||
| 224 | #if !defined(NO_USB_STARTUP_CHECK) | 227 | #if !defined(NO_USB_STARTUP_CHECK) |
| 225 | if (USB_DRIVER.state == USB_SUSPENDED) { | 228 | if (USB_DRIVER.state == USB_SUSPENDED) { |
| 226 | print("[s]"); | 229 | print("[s]"); |
