mirror of
https://github.com/f4exb/sdrangel.git
synced 2025-02-03 09:44:01 -05:00
LimeSDR: optimize external clock frequency change by not doing it if the frequency is changed and external clock is disabled
This commit is contained in:
parent
41eaa957f1
commit
17dd0f5daf
@ -835,7 +835,7 @@ bool LimeSDROutput::applySettings(const LimeSDROutputSettings& settings, bool fo
|
||||
}
|
||||
|
||||
if ((m_settings.m_extClock != settings.m_extClock) ||
|
||||
(m_settings.m_extClockFreq != settings.m_extClockFreq) || force)
|
||||
(settings.m_extClock && (m_settings.m_extClockFreq != settings.m_extClockFreq)) || force)
|
||||
{
|
||||
|
||||
if (DeviceLimeSDR::setClockSource(m_deviceShared.m_deviceParams->getDevice(),
|
||||
@ -844,13 +844,13 @@ bool LimeSDROutput::applySettings(const LimeSDROutputSettings& settings, bool fo
|
||||
{
|
||||
forwardClockSource = true;
|
||||
doCalibration = true;
|
||||
qDebug("LimeSDRInput::applySettings: clock set to %s (Ext: %d Hz)",
|
||||
qDebug("LimeSDROutput::applySettings: clock set to %s (Ext: %d Hz)",
|
||||
settings.m_extClock ? "external" : "internal",
|
||||
settings.m_extClockFreq);
|
||||
}
|
||||
else
|
||||
{
|
||||
qCritical("LimeSDRInput::applySettings: could not set clock to %s (Ext: %d Hz)",
|
||||
qCritical("LimeSDROutput::applySettings: could not set clock to %s (Ext: %d Hz)",
|
||||
settings.m_extClock ? "external" : "internal",
|
||||
settings.m_extClockFreq);
|
||||
}
|
||||
|
@ -987,7 +987,7 @@ bool LimeSDRInput::applySettings(const LimeSDRInputSettings& settings, bool forc
|
||||
}
|
||||
|
||||
if ((m_settings.m_extClock != settings.m_extClock) ||
|
||||
(m_settings.m_extClockFreq != settings.m_extClockFreq) || force)
|
||||
(settings.m_extClock && (m_settings.m_extClockFreq != settings.m_extClockFreq)) || force)
|
||||
{
|
||||
|
||||
if (DeviceLimeSDR::setClockSource(m_deviceShared.m_deviceParams->getDevice(),
|
||||
|
Loading…
Reference in New Issue
Block a user