mirror of
https://github.com/f4exb/sdrangel.git
synced 2025-05-24 11:12:27 -04:00
DSD demod plugin: refactor DMR status text display
This commit is contained in:
parent
5174fcdff7
commit
3d7984505f
@ -417,27 +417,24 @@ void DSDDemodGUI::formatStatusText()
|
|||||||
case DSDcc::DSDDecoder::DSDSyncDMRVoiceP:
|
case DSDcc::DSDDecoder::DSDSyncDMRVoiceP:
|
||||||
if (m_signalFormat != signalFormatDMR)
|
if (m_signalFormat != signalFormatDMR)
|
||||||
{
|
{
|
||||||
memcpy(m_formatStatusText, "Station: ", 9);
|
strcpy(m_formatStatusText, "Sta: __ S1: ______ S2: ______");
|
||||||
memcpy(&m_formatStatusText[12], "TDMA: ", 6);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
switch (m_dsdDemod->getDecoder().getStationType())
|
switch (m_dsdDemod->getDecoder().getStationType())
|
||||||
{
|
{
|
||||||
case DSDcc::DSDDecoder::DSDBaseStation:
|
case DSDcc::DSDDecoder::DSDBaseStation:
|
||||||
memcpy(&m_formatStatusText[9], "BS ", 3);
|
memcpy(&m_formatStatusText[5], "BS ", 3);
|
||||||
break;
|
break;
|
||||||
case DSDcc::DSDDecoder::DSDMobileStation:
|
case DSDcc::DSDDecoder::DSDMobileStation:
|
||||||
memcpy(&m_formatStatusText[9], "MS ", 3);
|
memcpy(&m_formatStatusText[5], "MS ", 3);
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
memcpy(&m_formatStatusText[9], "NA ", 3);
|
memcpy(&m_formatStatusText[5], "NA ", 3);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
memcpy(&m_formatStatusText[18], m_dsdDemod->getDecoder().getSlot0Text(), 7);
|
memcpy(&m_formatStatusText[12], m_dsdDemod->getDecoder().getSlot0Text(), 6);
|
||||||
m_formatStatusText[25] = ' ';
|
memcpy(&m_formatStatusText[23], m_dsdDemod->getDecoder().getSlot1Text(), 6);
|
||||||
memcpy(&m_formatStatusText[26], m_dsdDemod->getDecoder().getSlot1Text(), 7);
|
|
||||||
sprintf(&m_formatStatusText[33], " CC: %02d", m_dsdDemod->getDecoder().getColorCode());
|
|
||||||
m_signalFormat = signalFormatDMR;
|
m_signalFormat = signalFormatDMR;
|
||||||
break;
|
break;
|
||||||
case DSDcc::DSDDecoder::DSDSyncDStarHeaderN:
|
case DSDcc::DSDDecoder::DSDSyncDStarHeaderN:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user