diff --git a/src/AppleMIDI_Debug.h b/src/AppleMIDI_Debug.h index 1b63ca1..bedd863 100644 --- a/src/AppleMIDI_Debug.h +++ b/src/AppleMIDI_Debug.h @@ -15,7 +15,7 @@ static void AM_DBG_PLAIN(T last) { template static void AM_DBG_PLAIN(T head, Args... tail) { SerialMon.print(head); - SerialMon.print(' '); +// SerialMon.print(' '); AM_DBG_PLAIN(tail...); } diff --git a/src/rtpMIDI_Parser.h b/src/rtpMIDI_Parser.h index 914179a..65651ec 100644 --- a/src/rtpMIDI_Parser.h +++ b/src/rtpMIDI_Parser.h @@ -35,16 +35,11 @@ class rtpMIDIParser #ifdef DEBUG for (int i = 0; i < buffer.size(); i++) { - SerialMon.print(" "); - SerialMon.print(i); - SerialMon.print(i < 10 ? " " : " "); + AM_DBG(" ", i, i < 10 ? " " : " "); } for (int i = 0; i < buffer.size(); i++) { - SerialMon.print("0x"); - SerialMon.print(buffer[i] < 16 ? "0" : ""); - SerialMon.print(buffer[i], HEX); - SerialMon.print(" "); + AM_DBG("0x", buffer[i] < 16 ? "0" : "", buffer[i], HEX, " "); } #endif }