mirror of
https://github.com/ShaYmez/NXDNClients.git
synced 2024-11-26 17:18:38 -05:00
Change timings for fixed location startup.
This commit is contained in:
parent
db4a56d5c3
commit
0e4e612d35
@ -99,23 +99,17 @@ 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");
|
LogMessage("Connected to GPSD");
|
||||||
|
|
||||||
// Poll the GPS every minute
|
|
||||||
m_idTimer.setTimeout(60U);
|
|
||||||
} else {
|
|
||||||
m_idTimer.setTimeout(20U * 60U);
|
|
||||||
}
|
}
|
||||||
#else
|
|
||||||
m_idTimer.setTimeout(20U * 60U);
|
|
||||||
#endif
|
#endif
|
||||||
m_idTimer.start();
|
|
||||||
|
|
||||||
bool ret = m_aprsSocket.open();
|
bool ret = m_aprsSocket.open();
|
||||||
if (!ret)
|
if (!ret)
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
LogMessage("Opened connection to the APRS Gateway");
|
LogMessage("Opened connection to the APRS Gateway");
|
||||||
|
|
||||||
|
m_idTimer.setTimeout(60U);
|
||||||
|
m_idTimer.start();
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -144,6 +138,7 @@ void CAPRSWriter::clock(unsigned int ms)
|
|||||||
#endif
|
#endif
|
||||||
if (m_idTimer.hasExpired()) {
|
if (m_idTimer.hasExpired()) {
|
||||||
sendIdFrameFixed();
|
sendIdFrameFixed();
|
||||||
|
m_idTimer.setTimeout(20U * 60U);
|
||||||
m_idTimer.start();
|
m_idTimer.start();
|
||||||
}
|
}
|
||||||
#if !defined(_WIN32) && !defined(_WIN64)
|
#if !defined(_WIN32) && !defined(_WIN64)
|
||||||
|
Loading…
Reference in New Issue
Block a user