mirror of
https://github.com/f4exb/sdrangel.git
synced 2024-11-26 17:58:43 -05:00
Reverse API: AM demod changes (5)
This commit is contained in:
parent
448eaf0b0b
commit
0de56a57b1
@ -16,6 +16,7 @@
|
||||
|
||||
#include <QDockWidget>
|
||||
#include <QMainWindow>
|
||||
#include <QDebug>
|
||||
|
||||
#include "amdemodgui.h"
|
||||
#include "amdemodssbdialog.h"
|
||||
@ -94,7 +95,6 @@ bool AMDemodGUI::deserialize(const QByteArray& data)
|
||||
|
||||
bool AMDemodGUI::handleMessage(const Message& message)
|
||||
{
|
||||
(void) message;
|
||||
if (AMDemod::MsgConfigureAMDemod::match(message))
|
||||
{
|
||||
qDebug("AMDemodGUI::handleMessage: AMDemod::MsgConfigureAMDemod");
|
||||
@ -345,21 +345,32 @@ void AMDemodGUI::displaySettings()
|
||||
ui->bandpassEnable->setChecked(m_settings.m_bandpassEnable);
|
||||
ui->pll->setChecked(m_settings.m_pll);
|
||||
|
||||
qDebug() << "AMDemodGUI::displaySettings:"
|
||||
<< " m_pll: " << m_settings.m_pll
|
||||
<< " m_syncAMOperation: " << m_settings.m_syncAMOperation;
|
||||
|
||||
if (m_settings.m_pll)
|
||||
{
|
||||
if (m_settings.m_syncAMOperation == AMDemodSettings::SyncAMLSB)
|
||||
{
|
||||
m_samUSB = false;
|
||||
ui->ssb->setChecked(true);
|
||||
ui->ssb->setIcon(m_iconDSBLSB);
|
||||
}
|
||||
else
|
||||
else if (m_settings.m_syncAMOperation == AMDemodSettings::SyncAMUSB)
|
||||
{
|
||||
m_samUSB = true;
|
||||
ui->ssb->setChecked(true);
|
||||
ui->ssb->setIcon(m_iconDSBUSB);
|
||||
}
|
||||
else
|
||||
{
|
||||
ui->ssb->setChecked(false);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
ui->ssb->setChecked(false);
|
||||
ui->ssb->setIcon(m_iconDSBUSB);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user