mirror of
https://github.com/f4exb/sdrangel.git
synced 2024-11-25 17:28:50 -05:00
HackRF input: fixed sample rate setting from GUI. Following #1329
This commit is contained in:
parent
3ab767a426
commit
4b665a188a
@ -393,14 +393,14 @@ void HackRFInputGui::on_centerFrequency_changed(quint64 value)
|
||||
void HackRFInputGui::on_sampleRate_changed(quint64 value)
|
||||
{
|
||||
m_settings.m_devSampleRate = value;
|
||||
m_settingsKeys.append("devSampleRate");
|
||||
|
||||
if (!m_sampleRateMode)
|
||||
{
|
||||
if (!m_sampleRateMode) {
|
||||
m_settings.m_devSampleRate <<= m_settings.m_log2Decim;
|
||||
m_settingsKeys.append("devSampleRate");
|
||||
}
|
||||
|
||||
if(m_settings.m_autoBBF){
|
||||
if (m_settings.m_autoBBF)
|
||||
{
|
||||
m_settings.m_bandwidth = hackrf_compute_baseband_filter_bw(m_settings.m_devSampleRate);
|
||||
m_settingsKeys.append("bandwidth");
|
||||
ui->bbFilter->blockSignals(true);
|
||||
|
Loading…
Reference in New Issue
Block a user