mirror of
https://github.com/f4exb/sdrangel.git
synced 2026-06-02 22:14:45 -04:00
PlutoSDR input/output: do not apply settings to self when coming from a buddy change. Fixes #1690
This commit is contained in:
@@ -234,13 +234,14 @@ bool PlutoSDRInput::handleMessage(const Message& message)
|
||||
else if (DevicePlutoSDRShared::MsgCrossReportToBuddy::match(message)) // message from buddy
|
||||
{
|
||||
DevicePlutoSDRShared::MsgCrossReportToBuddy& conf = (DevicePlutoSDRShared::MsgCrossReportToBuddy&) message;
|
||||
m_settings.m_devSampleRate = conf.getDevSampleRate();
|
||||
m_settings.m_lpfFIRlog2Decim = conf.getLpfFiRlog2IntDec();
|
||||
m_settings.m_lpfFIRBW = conf.getLpfFirbw();
|
||||
m_settings.m_LOppmTenths = conf.getLoPPMTenths();
|
||||
PlutoSDRInputSettings newSettings = m_settings;
|
||||
newSettings.m_devSampleRate = conf.getDevSampleRate();
|
||||
newSettings.m_lpfFIRlog2Decim = conf.getLpfFiRlog2IntDec();
|
||||
newSettings.m_lpfFIRBW = conf.getLpfFirbw();
|
||||
newSettings.m_LOppmTenths = conf.getLoPPMTenths();
|
||||
newSettings.m_lpfFIREnable = conf.isLpfFirEnable();
|
||||
applySettings(newSettings, QList<QString>{"devSampleRate", "lpfFIRlog2Decim", "lpfFIRBW", "LOppmTenths", "lpfFIREnable"});
|
||||
|
||||
m_settings.applySettings(QList<QString>{"devSampleRate", "lpfFIRlog2Decim", "lpfFIRBW", "LOppmTenths", "lpfFIREnable"}, newSettings);
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user