debugging

This commit is contained in:
Eric Bateman 2019-08-11 00:34:40 -07:00
parent a44d1e7c1c
commit d688030c14
2 changed files with 4 additions and 0 deletions

BIN
.DS_Store vendored Normal file

Binary file not shown.

View File

@ -26,6 +26,7 @@
*/
#pragma once
#pragma message ("git clone MIDI.hpp" )
BEGIN_MIDI_NAMESPACE
@ -140,11 +141,13 @@ void MidiInterface<SerialPort, Settings>::send(MidiType inType,
inChannel == MIDI_CHANNEL_OMNI ||
inType < 0x80)
{
Serial.print("invalch: "); Serial.println(inType);
return; // Don't send anything
}
if (inType <= PitchBend) // Channel messages
{
Serial.print("chmsg: "); Serial.println(inType);
// Protection: remove MSBs on data
inData1 &= 0x7f;
inData2 &= 0x7f;
@ -175,6 +178,7 @@ void MidiInterface<SerialPort, Settings>::send(MidiType inType,
}
else if (inType >= Clock && inType <= SystemReset)
{
Serial.print("sendRT: "); Serial.println(inType);
sendRealTime(inType); // System Real-time and 1 byte.
}
}