diff --git a/src/gps/GPS.cpp b/src/gps/GPS.cpp index 49e41edd9..e6d93ded0 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; }