From 7dc7c820c02756102426e7033a8d22e5532aad83 Mon Sep 17 00:00:00 2001 From: Jonathan Naylor Date: Tue, 6 Nov 2018 11:28:22 +0000 Subject: [PATCH] Small MobileGPS code cleanups. --- YSFGateway/APRSWriter.cpp | 4 ---- YSFGateway/YSFGateway.cpp | 2 +- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/YSFGateway/APRSWriter.cpp b/YSFGateway/APRSWriter.cpp index 17dd779..cadbed9 100644 --- a/YSFGateway/APRSWriter.cpp +++ b/YSFGateway/APRSWriter.cpp @@ -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(); } diff --git a/YSFGateway/YSFGateway.cpp b/YSFGateway/YSFGateway.cpp index f9684a8..5b9d9c5 100644 --- a/YSFGateway/YSFGateway.cpp +++ b/YSFGateway/YSFGateway.cpp @@ -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);