Small MobileGPS code cleanups.
This commit is contained in:
parent
f17d7a65a6
commit
7dc7c820c0
2 changed files with 1 additions and 5 deletions
|
@ -262,8 +262,6 @@ void CAPRSWriter::sendIdFrameFixed()
|
|||
float(m_height) * 3.28F, band, desc);
|
||||
|
||||
m_thread->write(output);
|
||||
|
||||
m_idTimer.start();
|
||||
}
|
||||
|
||||
void CAPRSWriter::sendIdFrameMobile()
|
||||
|
@ -356,6 +354,4 @@ void CAPRSWriter::sendIdFrameMobile()
|
|||
::sprintf(output + ::strlen(output), "/A=%06.0f%s %s", float(rawAltitude) * 3.28F, band, desc);
|
||||
|
||||
m_thread->write(output);
|
||||
|
||||
m_idTimer.start();
|
||||
}
|
||||
|
|
|
@ -433,12 +433,12 @@ void CYSFGateway::createGPS()
|
|||
unsigned int port = m_conf.getAPRSPort();
|
||||
std::string password = m_conf.getAPRSPassword();
|
||||
std::string suffix = m_conf.getAPRSSuffix();
|
||||
std::string desc = m_conf.getAPRSDescription();
|
||||
|
||||
m_writer = new CAPRSWriter(m_callsign, m_suffix, password, hostname, port, suffix);
|
||||
|
||||
unsigned int txFrequency = m_conf.getTxFrequency();
|
||||
unsigned int rxFrequency = m_conf.getRxFrequency();
|
||||
std::string desc = m_conf.getAPRSDescription();
|
||||
|
||||
m_writer->setInfo(txFrequency, rxFrequency, desc);
|
||||
|
||||
|
|
Loading…
Reference in a new issue