mirror of
https://github.com/ShaYmez/NXDNClients.git
synced 2024-11-26 09:08:47 -05:00
Fixed startup bug.
This commit is contained in:
parent
c416e55cee
commit
332ca17f26
@ -40,7 +40,7 @@ m_aprsSocket()
|
|||||||
#if !defined(_WIN32) && !defined(_WIN64)
|
#if !defined(_WIN32) && !defined(_WIN64)
|
||||||
,m_gpsdEnabled(false),
|
,m_gpsdEnabled(false),
|
||||||
m_gpsdAddress(),
|
m_gpsdAddress(),
|
||||||
m_gpsdPort(0U),
|
m_gpsdPort(),
|
||||||
m_gpsdData()
|
m_gpsdData()
|
||||||
#endif
|
#endif
|
||||||
{
|
{
|
||||||
@ -98,6 +98,8 @@ bool CAPRSWriter::open()
|
|||||||
|
|
||||||
::gps_stream(&m_gpsdData, WATCH_ENABLE | WATCH_JSON, NULL);
|
::gps_stream(&m_gpsdData, WATCH_ENABLE | WATCH_JSON, NULL);
|
||||||
|
|
||||||
|
LogMessage("Connected to GPSD");
|
||||||
|
|
||||||
// Poll the GPS every minute
|
// Poll the GPS every minute
|
||||||
m_idTimer.setTimeout(60U);
|
m_idTimer.setTimeout(60U);
|
||||||
} else {
|
} else {
|
||||||
@ -108,7 +110,13 @@ bool CAPRSWriter::open()
|
|||||||
#endif
|
#endif
|
||||||
m_idTimer.start();
|
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 char* data)
|
void CAPRSWriter::write(const char* data)
|
||||||
|
@ -19,6 +19,6 @@
|
|||||||
#if !defined(VERSION_H)
|
#if !defined(VERSION_H)
|
||||||
#define VERSION_H
|
#define VERSION_H
|
||||||
|
|
||||||
const char* VERSION = "20200603";
|
const char* VERSION = "20200604";
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user