aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDean Camera <dean@fourwalledcubicle.com>2012-04-25 18:50:00 +0000
committerDean Camera <dean@fourwalledcubicle.com>2012-04-25 18:50:00 +0000
commitcc959c945b8002ece6c47e86af012112dd2535b3 (patch)
tree0a6548bd2b6e5765e42f410e7f37b3eb6ff1a398
parent69ecaae732b8394d78e9eaff5caf9b6f677b75e7 (diff)
downloadlufa-cc959c945b8002ece6c47e86af012112dd2535b3.tar.gz
lufa-cc959c945b8002ece6c47e86af012112dd2535b3.tar.bz2
lufa-cc959c945b8002ece6c47e86af012112dd2535b3.zip
Oops - fix broken MIDIToneGenerator project due to MIDI class API changes.
-rw-r--r--Projects/MIDIToneGenerator/MIDIToneGenerator.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Projects/MIDIToneGenerator/MIDIToneGenerator.c b/Projects/MIDIToneGenerator/MIDIToneGenerator.c
index 2a9d5c3c0..5f17fdd1c 100644
--- a/Projects/MIDIToneGenerator/MIDIToneGenerator.c
+++ b/Projects/MIDIToneGenerator/MIDIToneGenerator.c
@@ -100,7 +100,7 @@ int main(void)
MIDI_EventPacket_t ReceivedMIDIEvent;
if (MIDI_Device_ReceiveEventPacket(&Keyboard_MIDI_Interface, &ReceivedMIDIEvent))
{
- if ((ReceivedMIDIEvent.Command == (MIDI_COMMAND_NOTE_ON >> 4)) && ((ReceivedMIDIEvent.Data1 & 0x0F) == 0))
+ if ((ReceivedMIDIEvent.Event == MIDI_EVENT(0, MIDI_COMMAND_NOTE_ON)) && ((ReceivedMIDIEvent.Data1 & 0x0F) == 0))
{
DDSNoteData* LRUNoteStruct = &NoteData[0];
@@ -134,7 +134,7 @@ int main(void)
/* Turn on indicator LED to indicate note generation activity */
LEDs_SetAllLEDs(LEDS_LED1);
}
- else if ((ReceivedMIDIEvent.Command == (MIDI_COMMAND_NOTE_OFF >> 4)) && ((ReceivedMIDIEvent.Data1 & 0x0F) == 0))
+ else if ((ReceivedMIDIEvent.Event == MIDI_EVENT(0, MIDI_COMMAND_NOTE_OFF)) && ((ReceivedMIDIEvent.Data1 & 0x0F) == 0))
{
bool FoundActiveNote = false;