From 8d62efeec3ef1334d246336783be60d12f9af0c4 Mon Sep 17 00:00:00 2001 From: Jonathan Naylor Date: Thu, 4 Jun 2020 12:15:04 +0100 Subject: [PATCH] Add extra logging for APRS startup. --- Common/APRSWriter.cpp | 10 +++++++++- Common/Version.h | 4 ++-- 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/Common/APRSWriter.cpp b/Common/APRSWriter.cpp index 16ee9e6..7e3f92e 100644 --- a/Common/APRSWriter.cpp +++ b/Common/APRSWriter.cpp @@ -190,6 +190,8 @@ bool CAPRSWriter::open() ::gps_stream(&m_gpsdData, WATCH_ENABLE | WATCH_JSON, NULL); + wxLogMessage(wxT("Connected to GPSD")); + // Poll the GPS every minute m_idTimer.setTimeout(60U); } else { @@ -200,7 +202,13 @@ bool CAPRSWriter::open() #endif m_idTimer.start(); - return m_aprsSocket.open(); + bool ret = m_aprsSocket.open(); + if (!ret) + return false; + + wxLogMessage(wxT("Opened connection to the APRS Gateway")); + + return true; } void CAPRSWriter::writeHeader(const wxString& callsign, const CHeaderData& header) diff --git a/Common/Version.h b/Common/Version.h index 9e76233..cc157aa 100644 --- a/Common/Version.h +++ b/Common/Version.h @@ -24,9 +24,9 @@ const wxString VENDOR_NAME = wxT("G4KLX"); #if defined(__WXDEBUG__) -const wxString VERSION = wxT("20200603 - DEBUG"); +const wxString VERSION = wxT("20200604 - DEBUG"); #else -const wxString VERSION = wxT("20190603"); +const wxString VERSION = wxT("20190604"); #endif #endif