mirror of
https://github.com/g4klx/ircDDBGateway.git
synced 2026-02-19 05:34:17 +01:00
Add APRS debugging message for the log.
This commit is contained in:
parent
71f388197f
commit
7a8d63ccab
|
|
@ -60,6 +60,8 @@ CAPRSCollector::~CAPRSCollector()
|
|||
void CAPRSCollector::writeHeader(const wxString& callsign)
|
||||
{
|
||||
m_callsign = callsign;
|
||||
|
||||
wxLogMessage(wxT("APRS: Received callsign from header of \"%s\""), m_callsign.c_str());
|
||||
}
|
||||
|
||||
bool CAPRSCollector::writeData(const unsigned char* data)
|
||||
|
|
@ -453,6 +455,9 @@ unsigned int CAPRSCollector::convertNMEA1(unsigned char* data, unsigned int)
|
|||
::sprintf((char*)data + ::strlen((char*)data), "/A=%06.0f", float(altitude) * 3.28F);
|
||||
}
|
||||
|
||||
wxString log((char*)data, wxConvLocal);
|
||||
wxLogMessage(wxT("APRS: Created APRS string: %s"), log.c_str());
|
||||
|
||||
return ::strlen((char*)data);
|
||||
}
|
||||
|
||||
|
|
@ -492,6 +497,9 @@ unsigned int CAPRSCollector::convertNMEA2(unsigned char* data, unsigned int)
|
|||
::sprintf((char*)data + ::strlen((char*)data), "%03d/%03d", bearing, speed);
|
||||
}
|
||||
|
||||
wxString log((char*)data, wxConvLocal);
|
||||
wxLogMessage(wxT("APRS: Created APRS string: %s"), log.c_str());
|
||||
|
||||
return ::strlen((char*)data);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue