mirror of
https://github.com/f4exb/sdrangel.git
synced 2024-11-14 12:22:00 -05:00
Fixed BladeRF wrong log2decim at startup
This commit is contained in:
parent
5c0330e00a
commit
6769dd3e8f
@ -330,17 +330,17 @@ bool BladerfInput::applySettings(const GeneralSettings& generalSettings, const S
|
|||||||
}
|
}
|
||||||
|
|
||||||
if((m_settings.m_log2Decim != settings.m_log2Decim) || force) {
|
if((m_settings.m_log2Decim != settings.m_log2Decim) || force) {
|
||||||
if(m_dev != NULL) {
|
|
||||||
m_settings.m_log2Decim = settings.m_log2Decim;
|
m_settings.m_log2Decim = settings.m_log2Decim;
|
||||||
m_bladerfThread->setLog2Decimation(settings.m_log2Decim);
|
if(m_dev != NULL) {
|
||||||
|
m_bladerfThread->setLog2Decimation(m_settings.m_log2Decim);
|
||||||
std::cerr << "BladerfInput: set decimation to " << (1<<settings.m_log2Decim) << std::endl;
|
std::cerr << "BladerfInput: set decimation to " << (1<<settings.m_log2Decim) << std::endl;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if((m_settings.m_fcPos != settings.m_fcPos) || force) {
|
if((m_settings.m_fcPos != settings.m_fcPos) || force) {
|
||||||
if(m_dev != NULL) {
|
|
||||||
m_settings.m_fcPos = settings.m_fcPos;
|
m_settings.m_fcPos = settings.m_fcPos;
|
||||||
m_bladerfThread->setFcPos((int) settings.m_fcPos);
|
if(m_dev != NULL) {
|
||||||
|
m_bladerfThread->setFcPos((int) m_settings.m_fcPos);
|
||||||
std::cerr << "BladerfInput: set fc pos (enum) to " << (int) m_settings.m_fcPos << std::endl;
|
std::cerr << "BladerfInput: set fc pos (enum) to " << (int) m_settings.m_fcPos << std::endl;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user