aboutsummaryrefslogtreecommitdiffstats
path: root/Demos/Host/ClassDriver/MIDIHost
diff options
context:
space:
mode:
authorDean Camera <dean@fourwalledcubicle.com>2010-01-05 13:52:34 +0000
committerDean Camera <dean@fourwalledcubicle.com>2010-01-05 13:52:34 +0000
commitd97db1120b2b5911a3ea7d77efb9b913b8727bdb (patch)
treec51e1ddfab5f8c53f95db8016e0eaefc2cf9c36d /Demos/Host/ClassDriver/MIDIHost
parent60e96412220b62a614348c287354c56f282fcc70 (diff)
downloadlufa-d97db1120b2b5911a3ea7d77efb9b913b8727bdb.tar.gz
lufa-d97db1120b2b5911a3ea7d77efb9b913b8727bdb.tar.bz2
lufa-d97db1120b2b5911a3ea7d77efb9b913b8727bdb.zip
Added support to the MIDI Class drivers for packed data, where multiple MIDI events are packed into a single USB packet. Added new MIDI Class driver flush routines to override packing behaviour.
Diffstat (limited to 'Demos/Host/ClassDriver/MIDIHost')
-rw-r--r--Demos/Host/ClassDriver/MIDIHost/MIDIHost.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/Demos/Host/ClassDriver/MIDIHost/MIDIHost.c b/Demos/Host/ClassDriver/MIDIHost/MIDIHost.c
index 098a7fe47..64e651944 100644
--- a/Demos/Host/ClassDriver/MIDIHost/MIDIHost.c
+++ b/Demos/Host/ClassDriver/MIDIHost/MIDIHost.c
@@ -203,6 +203,7 @@ void CheckJoystickMovement(void)
};
MIDI_Host_SendEventPacket(&Keyboard_MIDI_Interface, &MIDIEvent);
+ MIDI_Host_Flush(&Keyboard_MIDI_Interface);
}
PrevJoystickStatus = JoystickStatus;