mirror of
https://github.com/f4exb/sdrangel.git
synced 2026-06-01 13:47:01 -04:00
For #1389
Handle LMS_Calibrate returning positive error values. Set Lime minimum frequency in GUI to 30MHz+NCO freq. Set minimum calibration bandwidth to 2.5MHz.
This commit is contained in:
@@ -1227,11 +1227,12 @@ bool LimeSDRInput::applySettings(const LimeSDRInputSettings& settings, bool forc
|
||||
|
||||
if (doCalibration)
|
||||
{
|
||||
double bw = std::min((double)m_settings.m_devSampleRate, 2500000.0); // Min supported calibration bandwidth is 2.5MHz
|
||||
if (LMS_Calibrate(m_deviceShared.m_deviceParams->getDevice(),
|
||||
LMS_CH_RX,
|
||||
m_deviceShared.m_channel,
|
||||
m_settings.m_devSampleRate,
|
||||
0) < 0)
|
||||
bw,
|
||||
0) != 0)
|
||||
{
|
||||
qCritical("LimeSDRInput::applySettings: calibration failed on Rx channel %d", m_deviceShared.m_channel);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user