diff options
Diffstat (limited to 'Demos/Device/MIDI/MIDI.c')
-rw-r--r-- | Demos/Device/MIDI/MIDI.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/Demos/Device/MIDI/MIDI.c b/Demos/Device/MIDI/MIDI.c index 4fef04754..8881d1dc7 100644 --- a/Demos/Device/MIDI/MIDI.c +++ b/Demos/Device/MIDI/MIDI.c @@ -64,6 +64,7 @@ int main(void) {
CheckJoystickMovement();
+ USB_MIDI_USBTask(&Keyboard_MIDI_Interface);
USB_USBTask();
}
}
@@ -168,3 +169,9 @@ void EVENT_USB_ConfigurationChanged(void) if (!(USB_MIDI_ConfigureEndpoints(&Keyboard_MIDI_Interface)))
LEDs_SetAllLEDs(LEDMASK_USB_ERROR);
}
+
+/** Event handler for the library USB Unhandled Control Packet event. */
+void EVENT_USB_UnhandledControlPacket(void)
+{
+ USB_MIDI_ProcessControlPacket(&Keyboard_MIDI_Interface);
+}
|