From 5b1b3539f829021b697390b01812d29b417449b5 Mon Sep 17 00:00:00 2001 From: Geoffrey Merck Date: Thu, 30 Dec 2021 18:39:52 +0100 Subject: [PATCH] #6 check if APRSThread is connected --- APRSWriter.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/APRSWriter.cpp b/APRSWriter.cpp index e733fdb..aebbb4a 100644 --- a/APRSWriter.cpp +++ b/APRSWriter.cpp @@ -362,6 +362,9 @@ void CAPRSWriter::sendIdFramesFixed() #ifdef USE_GPSD void CAPRSWriter::sendIdFramesMobile() { + if (!m_thread->isConnected()) + return; + if (!m_gpsdEnabled) return;