1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2025-05-24 19:22:27 -04:00

DSD demod: YSF: 3 digits for squelch code

This commit is contained in:
f4exb 2016-09-20 21:10:08 +02:00
parent 0d197b5024
commit dd1a70430f

View File

@ -532,13 +532,16 @@ void DSDDemodGUI::formatStatusText()
m_signalFormat = signalFormatDPMR; m_signalFormat = signalFormatDPMR;
break; break;
case DSDcc::DSDDecoder::DSDSyncYSF: case DSDcc::DSDDecoder::DSDSyncYSF:
// 1 1 2
// 0....5....0....5....0...
// CC VD2 RID B0 F7 WL S000
if (m_dsdDemod->getDecoder().getYSFDecoder().getFICHError() == DSDcc::DSDYSF::FICHNoError) if (m_dsdDemod->getDecoder().getYSFDecoder().getFICHError() == DSDcc::DSDYSF::FICHNoError)
{ {
sprintf(m_formatStatusText, "%s ", m_ysfChannelTypeText[(int) m_dsdDemod->getDecoder().getYSFDecoder().getFICH().getFrameInformation()]); sprintf(m_formatStatusText, "%s ", m_ysfChannelTypeText[(int) m_dsdDemod->getDecoder().getYSFDecoder().getFICH().getFrameInformation()]);
} }
else else
{ {
sprintf(m_formatStatusText, "E%d ", (int) m_dsdDemod->getDecoder().getYSFDecoder().getFICHError()); sprintf(m_formatStatusText, "E%d ", (int) m_dsdDemod->getDecoder().getYSFDecoder().getFICHError());
} }
sprintf(&m_formatStatusText[3], "%s %s B%d F%d %c%c ", sprintf(&m_formatStatusText[3], "%s %s B%d F%d %c%c ",
m_ysfDataTypeText[(int) m_dsdDemod->getDecoder().getYSFDecoder().getFICH().getDataType()], m_ysfDataTypeText[(int) m_dsdDemod->getDecoder().getYSFDecoder().getFICH().getDataType()],
@ -549,11 +552,11 @@ void DSDDemodGUI::formatStatusText()
(m_dsdDemod->getDecoder().getYSFDecoder().getFICH().isInternetPath() ? 'I' : 'L')); (m_dsdDemod->getDecoder().getYSFDecoder().getFICH().isInternetPath() ? 'I' : 'L'));
if (m_dsdDemod->getDecoder().getYSFDecoder().getFICH().isSquelchCodeEnabled()) if (m_dsdDemod->getDecoder().getYSFDecoder().getFICH().isSquelchCodeEnabled())
{ {
sprintf(&m_formatStatusText[20], "S%02d", m_dsdDemod->getDecoder().getYSFDecoder().getFICH().getSquelchCode()); sprintf(&m_formatStatusText[20], "S%03d", m_dsdDemod->getDecoder().getYSFDecoder().getFICH().getSquelchCode());
} }
else else
{ {
strcpy(&m_formatStatusText[20], "S--"); strcpy(&m_formatStatusText[20], "S---");
} }
m_signalFormat = signalFormatYSF; m_signalFormat = signalFormatYSF;
break; break;