1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2024-09-28 07:46:37 -04:00

LimeSDR input: corrected getSampleRate not to divide source sample rate by hardware decimation

This commit is contained in:
f4exb 2017-04-19 00:00:47 +02:00
parent 763175ab55
commit 3621849027
3 changed files with 3 additions and 3 deletions

View File

@ -239,7 +239,7 @@ const QString& LimeSDRInput::getDeviceDescription() const
int LimeSDRInput::getSampleRate() const
{
int rate = m_settings.m_devSampleRate;
return (rate / (1<<(m_settings.m_log2HardDecim + m_settings.m_log2SoftDecim)));
return (rate / (1<<m_settings.m_log2SoftDecim));
}
quint64 LimeSDRInput::getCenterFrequency() const

View File

@ -34,7 +34,7 @@ void LimeSDRInputSettings::resetToDefaults()
m_lpfBW = 4.5e6f;
m_lpfFIREnable = false;
m_lpfFIRBW = 2.5e6f;
m_gain = 0;
m_gain = 30;
}
QByteArray LimeSDRInputSettings::serialize() const