aboutsummaryrefslogtreecommitdiffstats
path: root/Demos/Device/ClassDriver/MIDI/MIDI.c
diff options
context:
space:
mode:
authorDean Camera <dean@fourwalledcubicle.com>2009-07-30 07:45:36 +0000
committerDean Camera <dean@fourwalledcubicle.com>2009-07-30 07:45:36 +0000
commit5ca1d7bf8f1aa774c076b614fa692c2026d7e854 (patch)
tree9a9a09e422e8c7d96e30d9d2854bd504f6780090 /Demos/Device/ClassDriver/MIDI/MIDI.c
parentfef185a409e2fee980d5fd391813a1cb7809582a (diff)
downloadlufa-5ca1d7bf8f1aa774c076b614fa692c2026d7e854.tar.gz
lufa-5ca1d7bf8f1aa774c076b614fa692c2026d7e854.tar.bz2
lufa-5ca1d7bf8f1aa774c076b614fa692c2026d7e854.zip
Fix redefinition warning when USB_DEVICE_ONLY is set on an AVR which does not support USB host mode.
Diffstat (limited to 'Demos/Device/ClassDriver/MIDI/MIDI.c')
-rw-r--r--Demos/Device/ClassDriver/MIDI/MIDI.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/Demos/Device/ClassDriver/MIDI/MIDI.c b/Demos/Device/ClassDriver/MIDI/MIDI.c
index 243ae9ec8..fcb86d661 100644
--- a/Demos/Device/ClassDriver/MIDI/MIDI.c
+++ b/Demos/Device/ClassDriver/MIDI/MIDI.c
@@ -67,6 +67,7 @@ int main(void)
{
CheckJoystickMovement();
+ /* Must acknowedge MIDI packets from the host even though they aren't used, or the host locks up */
MIDI_EventPacket_t DummyMIDIEvent;
MIDI_Device_ReceiveEventPacket(&Keyboard_MIDI_Interface, &DummyMIDIEvent);