From 3c2aac87f7bd94cd492f13652e8de87295a7487f Mon Sep 17 00:00:00 2001 From: Kevin Hester Date: Fri, 25 Dec 2020 15:39:42 +0800 Subject: [PATCH] better fix for screen messages in log --- src/graphics/Screen.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/graphics/Screen.cpp b/src/graphics/Screen.cpp index 8cc8ebe2..ecaa216f 100644 --- a/src/graphics/Screen.cpp +++ b/src/graphics/Screen.cpp @@ -912,7 +912,9 @@ void Screen::blink() { void Screen::handlePrint(const char *text) { - DEBUG_MSG("Screen: %s\n", text); + // the string passed into us probably has a newline, but that would confuse the logging system + // so strip it + DEBUG_MSG("Screen: %.*s\n", strlen(text) - 1, text); if (!useDisplay || !showingNormalScreen) return;