From 6769dd3e8fb7190029c1972152a608a38f33e12e Mon Sep 17 00:00:00 2001 From: f4exb Date: Mon, 27 Jul 2015 01:09:24 +0200 Subject: [PATCH] Fixed BladeRF wrong log2decim at startup --- plugins/samplesource/bladerf/bladerfinput.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/plugins/samplesource/bladerf/bladerfinput.cpp b/plugins/samplesource/bladerf/bladerfinput.cpp index f4ce00d04..b2bcc824d 100644 --- a/plugins/samplesource/bladerf/bladerfinput.cpp +++ b/plugins/samplesource/bladerf/bladerfinput.cpp @@ -330,17 +330,17 @@ bool BladerfInput::applySettings(const GeneralSettings& generalSettings, const S } if((m_settings.m_log2Decim != settings.m_log2Decim) || force) { + m_settings.m_log2Decim = settings.m_log2Decim; if(m_dev != NULL) { - m_settings.m_log2Decim = settings.m_log2Decim; - m_bladerfThread->setLog2Decimation(settings.m_log2Decim); + m_bladerfThread->setLog2Decimation(m_settings.m_log2Decim); std::cerr << "BladerfInput: set decimation to " << (1<setFcPos((int) settings.m_fcPos); + m_bladerfThread->setFcPos((int) m_settings.m_fcPos); std::cerr << "BladerfInput: set fc pos (enum) to " << (int) m_settings.m_fcPos << std::endl; } }