mirror of
https://github.com/f4exb/sdrangel.git
synced 2024-11-04 16:01:14 -05:00
DSD demod plugin: turn TDMA slot on/off button green if voice in the channel (only slot 1 for FDMA)
This commit is contained in:
parent
2294fce2e8
commit
627b084682
@ -45,6 +45,8 @@ public:
|
||||
void resetMbeDV2() { m_decoder.resetMbeDV2(); }
|
||||
const unsigned char *getMbeDVFrame1() const { return m_decoder.getMbeDVFrame1(); }
|
||||
const unsigned char *getMbeDVFrame2() const { return m_decoder.getMbeDVFrame2(); }
|
||||
bool getVoice1On() const { return m_decoder.getVoice1On(); }
|
||||
bool getVoice2On() const { return m_decoder.getVoice2On(); }
|
||||
|
||||
int getMbeRateIndex() const { return (int) m_decoder.getMbeRate(); }
|
||||
|
||||
|
@ -540,6 +540,18 @@ void DSDDemodGUI::tick()
|
||||
ui->zcPosText->setText(QString::number(m_dsdDemod->getDecoder().getZeroCrossingPos()));
|
||||
ui->symbolSyncQualityText->setText(QString::number(m_dsdDemod->getDecoder().getSymbolSyncQuality()));
|
||||
|
||||
if (m_dsdDemod->getDecoder().getVoice1On()) {
|
||||
ui->slot1On->setStyleSheet("QToolButton { background-color : green; }");
|
||||
} else {
|
||||
ui->slot1On->setStyleSheet("QToolButton { background-color : rgb(79,79,79); }");
|
||||
}
|
||||
|
||||
if (m_dsdDemod->getDecoder().getVoice2On()) {
|
||||
ui->slot2On->setStyleSheet("QToolButton { background-color : green; }");
|
||||
} else {
|
||||
ui->slot2On->setStyleSheet("QToolButton { background-color : rgb(79,79,79); }");
|
||||
}
|
||||
|
||||
const char *frameTypeText = m_dsdDemod->getDecoder().getFrameTypeText();
|
||||
|
||||
if (frameTypeText[0] == '\0') {
|
||||
|
Loading…
Reference in New Issue
Block a user