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

AirspyHF: fixed band setting initialization when setting frequency from preset

This commit is contained in:
f4exb 2018-01-15 00:32:59 +01:00
parent 6cf1524c7a
commit aa04cad353

View File

@ -210,16 +210,19 @@ 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);
blockApplySettings(false); ui->band->blockSignals(false);
blockApplySettings(false);
} }
void AirspyHFGui::displaySampleRates() void AirspyHFGui::displaySampleRates()