1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2024-12-23 01:55:48 -05:00

HackRF output plugin: code cleanup

This commit is contained in:
f4exb 2017-01-08 17:39:02 +01:00
parent 095b1cbab1
commit 9fd35cfe5c

View File

@ -287,8 +287,6 @@ bool HackRFOutput::applySettings(const HackRFOutputSettings& settings, bool forc
}
}
quint32 devSampleRate = m_settings.m_devSampleRate;
if (force || (m_settings.m_centerFrequency != settings.m_centerFrequency) ||
(m_settings.m_LOppmTenths != settings.m_LOppmTenths))
{
@ -299,9 +297,7 @@ bool HackRFOutput::applySettings(const HackRFOutputSettings& settings, bool forc
{
setCenterFrequency(m_settings.m_centerFrequency);
qDebug() << "HackRFOutput::applySettings: center freq: " << m_settings.m_centerFrequency << " Hz"
<< " device sample rate: " << devSampleRate << "Hz"
<< " Actual sample rate: " << devSampleRate/(1<<m_settings.m_log2Interp) << "Hz";
qDebug() << "HackRFOutput::applySettings: center freq: " << m_settings.m_centerFrequency << " Hz";
}
forwardChange = true;
@ -386,7 +382,7 @@ bool HackRFOutput::applySettings(const HackRFOutputSettings& settings, bool forc
if (forwardChange)
{
int sampleRate = devSampleRate/(1<<m_settings.m_log2Interp);
int sampleRate = m_settings.m_devSampleRate/(1<<m_settings.m_log2Interp);
DSPSignalNotification *notif = new DSPSignalNotification(sampleRate, m_settings.m_centerFrequency);
m_deviceAPI->getDeviceInputMessageQueue()->push(notif);
}