From 5ca1d7bf8f1aa774c076b614fa692c2026d7e854 Mon Sep 17 00:00:00 2001 From: Dean Camera Date: Thu, 30 Jul 2009 07:45:36 +0000 Subject: Fix redefinition warning when USB_DEVICE_ONLY is set on an AVR which does not support USB host mode. --- Demos/Device/ClassDriver/MIDI/MIDI.c | 1 + 1 file changed, 1 insertion(+) (limited to 'Demos') 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); -- cgit v1.2.3