From ed96321406921dbcef173d00fc9bb7c1f22af66f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20G=C3=B6ttgens?= Date: Fri, 31 Mar 2023 10:41:25 +0200 Subject: [PATCH] fix newline detection in error printing Our code check for newline in the format string, not in the parameter --- src/mesh/RadioInterface.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/mesh/RadioInterface.cpp b/src/mesh/RadioInterface.cpp index 063ae5374..0d53dc887 100644 --- a/src/mesh/RadioInterface.cpp +++ b/src/mesh/RadioInterface.cpp @@ -281,8 +281,8 @@ void printPacket(const char *prefix, const meshtastic_MeshPacket *p) if (p->priority != 0) out += DEBUG_PORT.mt_sprintf(" priority=%d", p->priority); - out += ")\n"; - LOG_DEBUG("%s", out.c_str()); + out += ")"; + LOG_DEBUG("%s\n", out.c_str()); } RadioInterface::RadioInterface()