diff --git a/src/AxeSystem.cpp b/src/AxeSystem.cpp index a04e4df..c53e417 100644 --- a/src/AxeSystem.cpp +++ b/src/AxeSystem.cpp @@ -71,4 +71,16 @@ void AxeSystem::intToMidiBytes(const int number, byte *byte1, byte *byte2) { int AxeSystem::midiBytesToInt(const byte lsb, const byte msb) { return lsb + (msb * BANK_SIZE); -} \ No newline at end of file +} + +#ifdef AXE_DEBUG_SYSEX +void AxeSystem::debugSysex(const byte *sysex, const byte length, const char *message) { + char buf[6]; + DEBUGGER.print(message); + for (byte i=0; i +#include "AxeSystem.h" #define SER_AVLB _serial->available() #define SER_READ _serial->read() @@ -98,6 +98,9 @@ void AxeSystem::sendSysEx(const byte *sysex, const byte length) { for (byte i=0; i AxeSystem::sendSysEx(): "); + #endif } void AxeSystem::sendCommand(const byte command) { @@ -135,16 +138,6 @@ void AxeSystem::sendCommand(const byte command, const byte *data, const byte par //punch it! sendSysEx(sysex, length); - #ifdef AXE_DEBUG_SYSEX - char buf[6]; - Serial.print("SYSEX OUT: "); - for (byte i=0; i