mirror of
https://github.com/f4exb/sdrangel.git
synced 2025-05-24 11:12:27 -04:00
DSD demod: YSF: 3 digits for squelch code
This commit is contained in:
parent
0d197b5024
commit
dd1a70430f
@ -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;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user