From 2954095f3da6cea06bf4a519a904ca74b86b78d8 Mon Sep 17 00:00:00 2001 From: Tom Fifield Date: Sat, 2 Nov 2024 11:25:46 +0800 Subject: [PATCH] Don't print blank lines in GPS_DEBUG. --- src/gps/GPS.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/gps/GPS.cpp b/src/gps/GPS.cpp index 49e41edd99..e6d93ded0c 100644 --- a/src/gps/GPS.cpp +++ b/src/gps/GPS.cpp @@ -1705,7 +1705,9 @@ bool GPS::whileActive() } } #ifdef GPS_DEBUG - LOG_DEBUG(debugmsg.c_str()); + if (debugmsg != "") { + LOG_DEBUG(debugmsg.c_str()); + } #endif return isValid; }