Add extra logging for APRS startup.

This commit is contained in:
Jonathan Naylor 2020-06-04 12:15:04 +01:00
parent 0d5dae1d29
commit 8d62efeec3
2 changed files with 11 additions and 3 deletions

View file

@ -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)

View file

@ -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