mirror of
https://github.com/f4exb/sdrangel.git
synced 2024-11-16 05:11:49 -05:00
AirspyHF: fixed band setting initialization when setting frequency from preset
This commit is contained in:
parent
6cf1524c7a
commit
aa04cad353
@ -210,15 +210,18 @@ void AirspyHFGui::updateFrequencyLimits()
|
|||||||
void AirspyHFGui::displaySettings()
|
void AirspyHFGui::displaySettings()
|
||||||
{
|
{
|
||||||
blockApplySettings(true);
|
blockApplySettings(true);
|
||||||
|
ui->band->blockSignals(true);
|
||||||
|
m_settings.m_bandIndex = m_settings.m_centerFrequency <= 31000000UL ? 0 : 1; // override
|
||||||
ui->band->setCurrentIndex(m_settings.m_bandIndex);
|
ui->band->setCurrentIndex(m_settings.m_bandIndex);
|
||||||
|
updateFrequencyLimits();
|
||||||
ui->transverter->setDeltaFrequency(m_settings.m_transverterDeltaFrequency);
|
ui->transverter->setDeltaFrequency(m_settings.m_transverterDeltaFrequency);
|
||||||
ui->transverter->setDeltaFrequencyActive(m_settings.m_transverterMode);
|
ui->transverter->setDeltaFrequencyActive(m_settings.m_transverterMode);
|
||||||
updateFrequencyLimits();
|
|
||||||
ui->centerFrequency->setValue(m_settings.m_centerFrequency / 1000);
|
ui->centerFrequency->setValue(m_settings.m_centerFrequency / 1000);
|
||||||
|
|
||||||
ui->sampleRate->setCurrentIndex(m_settings.m_devSampleRateIndex);
|
ui->sampleRate->setCurrentIndex(m_settings.m_devSampleRateIndex);
|
||||||
|
|
||||||
ui->decim->setCurrentIndex(m_settings.m_log2Decim);
|
ui->decim->setCurrentIndex(m_settings.m_log2Decim);
|
||||||
|
ui->band->blockSignals(false);
|
||||||
blockApplySettings(false);
|
blockApplySettings(false);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user