1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2024-11-25 01:18:38 -05:00

FCD fixes for REST API

This commit is contained in:
f4exb 2019-01-12 23:34:11 +01:00
parent 0215839220
commit a9aac62617
3 changed files with 14 additions and 2 deletions

View File

@ -30,7 +30,7 @@ int FCDProConstants::fcdpro_lna_gain_nb_values()
const fcdpro_lna_enhance FCDProConstants::lna_enhances[] = {
{FCDPRO_TLE_OFF, "Off"},
{FCDPRO_TLE_0, "1"},
{FCDPRO_TLE_0, "0"},
{FCDPRO_TLE_1, "1"},
{FCDPRO_TLE_2, "2"},
{FCDPRO_TLE_3, "3"}

View File

@ -258,6 +258,13 @@ void FCDProGui::handleInputMessages()
delete message;
}
else
{
if (handleMessage(*message))
{
delete message;
}
}
}
}
@ -309,6 +316,7 @@ void FCDProGui::displaySettings()
ui->gain5->setCurrentIndex(m_settings.m_gain5Index);
ui->gain6->setCurrentIndex(m_settings.m_gain6Index);
ui->decim->setCurrentIndex(m_settings.m_log2Decim);
ui->fcPos->setCurrentIndex((int) m_settings.m_fcPos);
ui->rcFilter->setCurrentIndex(m_settings.m_rcFilterIndex);
ui->ifFilter->setCurrentIndex(m_settings.m_ifFilterIndex);
}

View File

@ -176,7 +176,10 @@ void FCDProPlusGui::handleInputMessages()
}
else
{
qWarning("FCDProPlusGui::handleInputMessages: message: %s. No action.", message->getIdentifier());
if (handleMessage(*message))
{
delete message;
}
}
}
}
@ -210,6 +213,7 @@ void FCDProPlusGui::displaySettings()
updateFrequencyLimits();
ui->centerFrequency->setValue(m_settings.m_centerFrequency / 1000);
ui->decim->setCurrentIndex(m_settings.m_log2Decim);
ui->fcPos->setCurrentIndex((int) m_settings.m_fcPos);
ui->dcOffset->setChecked(m_settings.m_dcBlock);
ui->iqImbalance->setChecked(m_settings.m_iqImbalance);
ui->checkBoxG->setChecked(m_settings.m_lnaGain);