More improvements to the incomplete BluetoothHost demo - add Disconnection Event...
[pub/USBasp.git] / Demos / Device / ClassDriver / MIDI / MIDI.c
index 8ea0fcb..5c0f25e 100644 (file)
@@ -1,13 +1,13 @@
 /*\r
              LUFA Library\r
 /*\r
              LUFA Library\r
-     Copyright (C) Dean Camera, 2009.\r
+     Copyright (C) Dean Camera, 2010.\r
               \r
   dean [at] fourwalledcubicle [dot] com\r
       www.fourwalledcubicle.com\r
 */\r
 \r
 /*\r
               \r
   dean [at] fourwalledcubicle [dot] com\r
       www.fourwalledcubicle.com\r
 */\r
 \r
 /*\r
-  Copyright 2009  Dean Camera (dean [at] fourwalledcubicle [dot] com)\r
+  Copyright 2010  Dean Camera (dean [at] fourwalledcubicle [dot] com)\r
 \r
   Permission to use, copy, modify, distribute, and sell this \r
   software and its documentation for any purpose is hereby granted\r
 \r
   Permission to use, copy, modify, distribute, and sell this \r
   software and its documentation for any purpose is hereby granted\r
@@ -158,6 +158,7 @@ void CheckJoystickMovement(void)
                        };\r
                        \r
                MIDI_Device_SendEventPacket(&Keyboard_MIDI_Interface, &MIDIEvent);\r
                        };\r
                        \r
                MIDI_Device_SendEventPacket(&Keyboard_MIDI_Interface, &MIDIEvent);\r
+               MIDI_Device_Flush(&Keyboard_MIDI_Interface);\r
        }\r
 \r
        PrevJoystickStatus = JoystickStatus;\r
        }\r
 \r
        PrevJoystickStatus = JoystickStatus;\r