1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2026-06-03 06:24:48 -04:00

RTL-SDR: fixed low sample rate setting

This commit is contained in:
f4exb
2018-07-30 01:38:48 +02:00
parent 1bb36f6670
commit e1bef01b96
2 changed files with 10 additions and 1 deletions
+4 -1
View File
@@ -260,6 +260,7 @@ void RTLSDRGui::displaySettings()
ui->fcPos->setCurrentIndex((int) m_settings.m_fcPos);
ui->checkBox->setChecked(m_settings.m_noModMode);
ui->agc->setChecked(m_settings.m_agc);
ui->lowSampleRate->setChecked(m_settings.m_lowSampleRate);
}
void RTLSDRGui::sendSettings()
@@ -448,7 +449,9 @@ void RTLSDRGui::on_rfBW_changed(quint64 value)
void RTLSDRGui::on_lowSampleRate_toggled(bool checked)
{
if (checked) {
m_settings.m_lowSampleRate = checked;
if (m_settings.m_lowSampleRate) {
ui->sampleRate->setValueRange(7, RTLSDRInput::sampleRateLowRangeMin, RTLSDRInput::sampleRateLowRangeMax);
} else {
ui->sampleRate->setValueRange(7, RTLSDRInput::sampleRateHighRangeMin, RTLSDRInput::sampleRateHighRangeMax);