gnuradioinput: fix automatic bandwidth selection on samp rate change
This commit is contained in:
parent
c0a54d95df
commit
4f2d10d591
|
@ -391,7 +391,6 @@ void GNURadioGui::on_cboSampleRate_currentIndexChanged(int index)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
m_settings.m_sampRate = m_sampRates[index];
|
m_settings.m_sampRate = m_sampRates[index];
|
||||||
|
|
||||||
sendSettings();
|
sendSettings();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -315,8 +315,11 @@ bool GNURadioInput::applySettings(const GeneralSettings& generalSettings,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if((m_settings.m_bandwidth != settings.m_bandwidth) || force) {
|
if((m_settings.m_bandwidth != settings.m_bandwidth) ||
|
||||||
|
(0.0f == settings.m_bandwidth) || force) {
|
||||||
m_settings.m_bandwidth = settings.m_bandwidth;
|
m_settings.m_bandwidth = settings.m_bandwidth;
|
||||||
|
/* setting the BW to 0.0 triggers automatic bandwidth
|
||||||
|
* selection when supported by device */
|
||||||
radio->set_bandwidth( m_settings.m_bandwidth );
|
radio->set_bandwidth( m_settings.m_bandwidth );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue