diff --git a/plugins/channel/bfm/bfmdemodgui.cpp b/plugins/channel/bfm/bfmdemodgui.cpp index ad6151301..9d83409c4 100644 --- a/plugins/channel/bfm/bfmdemodgui.cpp +++ b/plugins/channel/bfm/bfmdemodgui.cpp @@ -128,12 +128,18 @@ bool BFMDemodGUI::deserialize(const QByteArray& data) d.readS32(1, &tmp, 0); m_channelMarker.setCenterFrequency(tmp); + d.readS32(2, &tmp, 4); ui->rfBW->setValue(tmp); + ui->rfBWText->setText(QString("%1 kHz").arg(m_rfBW[tmp] / 1000.0)); + m_channelMarker.setBandwidth(m_rfBW[tmp]); + d.readS32(3, &tmp, 3); ui->afBW->setValue(tmp); + d.readS32(4, &tmp, 20); ui->volume->setValue(tmp); + d.readS32(5, &tmp, -40); ui->squelch->setValue(tmp); diff --git a/plugins/channel/bfm/bfmdemodgui.ui b/plugins/channel/bfm/bfmdemodgui.ui index 93889e499..dc984a364 100644 --- a/plugins/channel/bfm/bfmdemodgui.ui +++ b/plugins/channel/bfm/bfmdemodgui.ui @@ -7,19 +7,22 @@ 0 0 252 - 324 + 333 Broadcast FM Demod + + + 10 20 235 - 111 + 121 @@ -339,7 +342,7 @@ 10 - 150 + 160 231 156 diff --git a/plugins/channel/wfm/wfmdemodgui.cpp b/plugins/channel/wfm/wfmdemodgui.cpp index 1c076e40f..169b007a0 100644 --- a/plugins/channel/wfm/wfmdemodgui.cpp +++ b/plugins/channel/wfm/wfmdemodgui.cpp @@ -108,12 +108,18 @@ bool WFMDemodGUI::deserialize(const QByteArray& data) d.readS32(1, &tmp, 0); m_channelMarker.setCenterFrequency(tmp); + d.readS32(2, &tmp, 4); ui->rfBW->setValue(tmp); + ui->rfBWText->setText(QString("%1 kHz").arg(m_rfBW[tmp] / 1000.0)); + m_channelMarker.setBandwidth(m_rfBW[tmp]); + d.readS32(3, &tmp, 3); ui->afBW->setValue(tmp); + d.readS32(4, &tmp, 20); ui->volume->setValue(tmp); + d.readS32(5, &tmp, -40); ui->squelch->setValue(tmp);