diff --git a/YSFGateway/APRSWriter.cpp b/YSFGateway/APRSWriter.cpp index 6bc5992..0e783c6 100644 --- a/YSFGateway/APRSWriter.cpp +++ b/YSFGateway/APRSWriter.cpp @@ -41,7 +41,7 @@ m_aprsSocket() #if !defined(_WIN32) && !defined(_WIN64) ,m_gpsdEnabled(false), m_gpsdAddress(), -m_gpsdPort(0U), +m_gpsdPort(), m_gpsdData() #endif { @@ -99,6 +99,8 @@ bool CAPRSWriter::open() ::gps_stream(&m_gpsdData, WATCH_ENABLE | WATCH_JSON, NULL); + LogMessage("Connected to GPSD"); + // Poll the GPS every minute m_idTimer.setTimeout(60U); } else { @@ -109,7 +111,13 @@ bool CAPRSWriter::open() #endif m_idTimer.start(); - return m_aprsSocket.open(); + bool ret = m_aprsSocket.open(); + if (!ret) + return false; + + LogMessage("Opened connection to the APRS Gateway"); + + return true; } void CAPRSWriter::write(const unsigned char* source, const char* type, unsigned char radio, float fLatitude, float fLongitude) diff --git a/YSFGateway/Version.h b/YSFGateway/Version.h index 5c5824f..3f80005 100644 --- a/YSFGateway/Version.h +++ b/YSFGateway/Version.h @@ -19,6 +19,6 @@ #if !defined(VERSION_H) #define VERSION_H -const char* VERSION = "20200603"; +const char* VERSION = "20200604"; #endif