aboutsummaryrefslogtreecommitdiff
path: root/Demos/Host/LowLevel/MIDIHost/MIDIHost.c
diff options
context:
space:
mode:
authorDean <Dean@d5102386-fcda-11dd-9fdb-3debd5008f28>2012-05-20 15:43:51 +0000
committerDean <Dean@d5102386-fcda-11dd-9fdb-3debd5008f28>2012-05-20 15:43:51 +0000
commitbf5448b1d3625e109ac243f560aa4bec004b135a (patch)
tree831ba5778a2b6adf6f05be487f91d87ab1c18f2c /Demos/Host/LowLevel/MIDIHost/MIDIHost.c
parentd051f41d48976e5341176927c9a79dcf329b379f (diff)
parentd2b6a7be9737c09fecc5f6b1f69505d8a2517d38 (diff)
Merge in latest trunk.
git-svn-id: http://lufa-lib.googlecode.com/svn/branches/AppConfigHeaders@2228 d5102386-fcda-11dd-9fdb-3debd5008f28
Diffstat (limited to 'Demos/Host/LowLevel/MIDIHost/MIDIHost.c')
-rw-r--r--Demos/Host/LowLevel/MIDIHost/MIDIHost.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/Demos/Host/LowLevel/MIDIHost/MIDIHost.c b/Demos/Host/LowLevel/MIDIHost/MIDIHost.c
index f4a52acc..f6b607a9 100644
--- a/Demos/Host/LowLevel/MIDIHost/MIDIHost.c
+++ b/Demos/Host/LowLevel/MIDIHost/MIDIHost.c
@@ -167,6 +167,7 @@ void MIDIHost_Task(void)
return;
Pipe_SelectPipe(MIDI_DATA_IN_PIPE);
+ Pipe_Unfreeze();
if (Pipe_IsINReceived())
{
@@ -187,8 +188,11 @@ void MIDIHost_Task(void)
MIDIEvent.Data2, MIDIEvent.Data3);
}
}
+
+ Pipe_Freeze();
Pipe_SelectPipe(MIDI_DATA_OUT_PIPE);
+ Pipe_Unfreeze();
if (Pipe_IsOUTReady())
{
@@ -251,6 +255,8 @@ void MIDIHost_Task(void)
Pipe_ClearOUT();
}
+ Pipe_Freeze();
+
/* Save previous joystick value for next joystick change detection */
PrevJoystickStatus = JoystickStatus;
}