mirror of
https://github.com/f4exb/sdrangel.git
synced 2025-09-03 13:47:50 -04:00
PlutoSDR input/output: do not apply settings to self when coming from a buddy change. Fixes #1690
This commit is contained in:
parent
d1116b564a
commit
c4debeef8e
@ -210,14 +210,14 @@ bool PlutoSDROutput::handleMessage(const Message& message)
|
|||||||
else if (DevicePlutoSDRShared::MsgCrossReportToBuddy::match(message)) // message from buddy
|
else if (DevicePlutoSDRShared::MsgCrossReportToBuddy::match(message)) // message from buddy
|
||||||
{
|
{
|
||||||
DevicePlutoSDRShared::MsgCrossReportToBuddy& conf = (DevicePlutoSDRShared::MsgCrossReportToBuddy&) message;
|
DevicePlutoSDRShared::MsgCrossReportToBuddy& conf = (DevicePlutoSDRShared::MsgCrossReportToBuddy&) message;
|
||||||
m_settings.m_devSampleRate = conf.getDevSampleRate();
|
|
||||||
m_settings.m_lpfFIRlog2Interp = conf.getLpfFiRlog2IntDec();
|
|
||||||
m_settings.m_lpfFIRBW = conf.getLpfFirbw();
|
|
||||||
m_settings.m_LOppmTenths = conf.getLoPPMTenths();
|
|
||||||
PlutoSDROutputSettings newSettings = m_settings;
|
PlutoSDROutputSettings newSettings = m_settings;
|
||||||
|
newSettings.m_devSampleRate = conf.getDevSampleRate();
|
||||||
|
newSettings.m_lpfFIRlog2Interp = conf.getLpfFiRlog2IntDec();
|
||||||
|
newSettings.m_lpfFIRBW = conf.getLpfFirbw();
|
||||||
|
newSettings.m_LOppmTenths = conf.getLoPPMTenths();
|
||||||
newSettings.m_lpfFIREnable = conf.isLpfFirEnable();
|
newSettings.m_lpfFIREnable = conf.isLpfFirEnable();
|
||||||
|
|
||||||
applySettings(newSettings, QList<QString>{"devSampleRate", "lpfFIRlog2Interp", "lpfFIRBW", "LOppmTenths", "lpfFIREnable"});
|
m_settings.applySettings(QList<QString>{"devSampleRate", "lpfFIRlog2Interp", "lpfFIRBW", "LOppmTenths", "lpfFIREnable"}, newSettings);
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
@ -234,13 +234,14 @@ bool PlutoSDRInput::handleMessage(const Message& message)
|
|||||||
else if (DevicePlutoSDRShared::MsgCrossReportToBuddy::match(message)) // message from buddy
|
else if (DevicePlutoSDRShared::MsgCrossReportToBuddy::match(message)) // message from buddy
|
||||||
{
|
{
|
||||||
DevicePlutoSDRShared::MsgCrossReportToBuddy& conf = (DevicePlutoSDRShared::MsgCrossReportToBuddy&) message;
|
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;
|
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();
|
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;
|
return true;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user