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) { if (valid) {
unsigned char dt = fich.getDT(); unsigned char dt = fich.getDT();
unsigned char fn = fich.getFN(); unsigned char fn = fich.getFN();
unsigned char ft = fich.getFT();
unsigned char fi = fich.getFI(); unsigned char fi = fich.getFI();
// Set the downlink callsign // Set the downlink callsign

View file

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