1
0
Fork 0

Merge pull request #85 from jpronans/master

Minor fixes.
ycs232-kbc
Jonathan Naylor 8 years ago committed by GitHub
commit 632fd7d2d4

@ -64,6 +64,7 @@ void CAPRSWriter::setInfo(unsigned int txFrequency, unsigned int rxFrequency, fl
bool CAPRSWriter::open() bool CAPRSWriter::open()
{ {
m_idTimer.start();
return m_thread->start(); return m_thread->start();
} }
@ -179,10 +180,10 @@ void CAPRSWriter::sendIdFrames()
longitude = (tempLong - longitude) * 60.0 + longitude * 100.0; longitude = (tempLong - longitude) * 60.0 + longitude * 100.0;
char lat[20U]; char lat[20U];
::sprintf(lat, "%04.2lf", latitude); ::sprintf(lat, "%07.2lf", latitude);
char lon[20U]; char lon[20U];
::sprintf(lon, "%05.2lf", longitude); ::sprintf(lon, "%08.2lf", longitude);
std::string server = m_callsign; std::string server = m_callsign;
size_t pos = server.find_first_of('-'); size_t pos = server.find_first_of('-');

Loading…
Cancel
Save