diff options
author | Dean Camera <dean@fourwalledcubicle.com> | 2009-06-10 05:03:45 +0000 |
---|---|---|
committer | Dean Camera <dean@fourwalledcubicle.com> | 2009-06-10 05:03:45 +0000 |
commit | 6be24e44046ffc386e2f4072aa5cccb1c462f47f (patch) | |
tree | 3a9d00eacc42f772910581d6e2e06b2fc409e466 /Demos/Device/ClassDriver/MIDI | |
parent | 28343b1475b999e61c8fe98eb420507a0e6da388 (diff) | |
download | lufa-6be24e44046ffc386e2f4072aa5cccb1c462f47f.tar.gz lufa-6be24e44046ffc386e2f4072aa5cccb1c462f47f.tar.bz2 lufa-6be24e44046ffc386e2f4072aa5cccb1c462f47f.zip |
Fixes to the MIDI device demos (ClassDriver, LowLevel); discard unused read-in events from the host, use standard MIDI event structure in low level demo rather than sending individual bytes.
Diffstat (limited to 'Demos/Device/ClassDriver/MIDI')
-rw-r--r-- | Demos/Device/ClassDriver/MIDI/MIDI.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Demos/Device/ClassDriver/MIDI/MIDI.c b/Demos/Device/ClassDriver/MIDI/MIDI.c index 8881d1dc7..bb4eaf2df 100644 --- a/Demos/Device/ClassDriver/MIDI/MIDI.c +++ b/Demos/Device/ClassDriver/MIDI/MIDI.c @@ -63,6 +63,9 @@ int main(void) for (;;)
{
CheckJoystickMovement();
+
+ USB_MIDI_EventPacket_t DummyMIDIEvent;
+ USB_MIDI_ReceiveEventPacket(&Keyboard_MIDI_Interface, &DummyMIDIEvent);
USB_MIDI_USBTask(&Keyboard_MIDI_Interface);
USB_USBTask();
|