Dump CSD data in data FR mode.

This commit is contained in:
Jonathan Naylor 2016-05-24 06:57:29 +01:00
parent 2117491d2c
commit 47aee60b55
2 changed files with 8 additions and 1 deletions

View file

@ -409,7 +409,6 @@ void CYSFControl::writeNetwork()
if (valid) {
unsigned char dt = fich.getDT();
unsigned char fn = fich.getFN();
unsigned char ft = fich.getFT();
unsigned char fi = fich.getFI();
// Set the downlink callsign

View file

@ -598,6 +598,8 @@ bool CYSFPayload::processDataFRModeData(unsigned char* data, unsigned char fn)
switch (fn) {
case 0U:
CUtils::dump(1U, "FR Mode Data, CSD1", output, 20U);
if (m_dest == NULL) {
m_dest = new unsigned char[YSF_CALLSIGN_LENGTH];
::memcpy(m_dest, output + 0U, YSF_CALLSIGN_LENGTH);
@ -610,6 +612,10 @@ bool CYSFPayload::processDataFRModeData(unsigned char* data, unsigned char fn)
break;
case 1U:
CUtils::dump(1U, "FR Mode Data, CSD3", output, 20U);
break;
case 2U:
CUtils::dump(1U, "FR Mode Data, DT2", output, 20U);
break;
@ -700,6 +706,8 @@ bool CYSFPayload::processDataFRModeData(unsigned char* data, unsigned char fn)
switch (fn) {
case 0U:
CUtils::dump(1U, "FR Mode Data, CSD2", output, 20U);
if (m_downlink != NULL)
::memcpy(output + 0U, m_downlink, YSF_CALLSIGN_LENGTH);