From f3ddcce744011978869dfced3a3fba1d28686e0f Mon Sep 17 00:00:00 2001 From: John Ronan Date: Thu, 1 Jun 2017 09:45:41 +0100 Subject: [PATCH] * Could not see were the timer was being started. Starting now in open. * Adjusted Formatting --- YSFGateway/APRSWriter.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/YSFGateway/APRSWriter.cpp b/YSFGateway/APRSWriter.cpp index 43a2f61..2314135 100644 --- a/YSFGateway/APRSWriter.cpp +++ b/YSFGateway/APRSWriter.cpp @@ -64,6 +64,7 @@ void CAPRSWriter::setInfo(unsigned int txFrequency, unsigned int rxFrequency, fl bool CAPRSWriter::open() { + m_idTimer.start(); return m_thread->start(); } @@ -179,10 +180,10 @@ void CAPRSWriter::sendIdFrames() longitude = (tempLong - longitude) * 60.0 + longitude * 100.0; char lat[20U]; - ::sprintf(lat, "%04.2lf", latitude); + ::sprintf(lat, "%07.2lf", latitude); char lon[20U]; - ::sprintf(lon, "%05.2lf", longitude); + ::sprintf(lon, "%08.2lf", longitude); std::string server = m_callsign; size_t pos = server.find_first_of('-');