From 888f4528474ecad6880c64f6cf49470c0430cfcd Mon Sep 17 00:00:00 2001 From: lathoub <4082369+lathoub@users.noreply.github.com> Date: Sun, 2 Feb 2025 10:04:55 +0100 Subject: [PATCH] add debugging --- src/AppleMIDI_Debug.h | 2 +- src/rtpMIDI_Parser.h | 9 ++------- 2 files changed, 3 insertions(+), 8 deletions(-) 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 } pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy