summaryrefslogtreecommitdiffstats
path: root/plugins/samplesource/gnuradio/gnuradioinput.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/samplesource/gnuradio/gnuradioinput.cpp')
-rw-r--r--plugins/samplesource/gnuradio/gnuradioinput.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/plugins/samplesource/gnuradio/gnuradioinput.cpp b/plugins/samplesource/gnuradio/gnuradioinput.cpp
index 9fb627c..b564822 100644
--- a/plugins/samplesource/gnuradio/gnuradioinput.cpp
+++ b/plugins/samplesource/gnuradio/gnuradioinput.cpp
@@ -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;
+ /* setting the BW to 0.0 triggers automatic bandwidth
+ * selection when supported by device */
radio->set_bandwidth( m_settings.m_bandwidth );
}