mirror of
https://github.com/f4exb/sdrangel.git
synced 2026-06-02 06:04:39 -04:00
LimeSDR: pass center frequency change to buddies of same type
This commit is contained in:
@@ -139,12 +139,16 @@ bool LimeSDRInputGUI::deserialize(const QByteArray& data)
|
||||
|
||||
bool LimeSDRInputGUI::handleMessage(const Message& message)
|
||||
{
|
||||
if (DeviceLimeSDRShared::MsgReportSampleRateDirChange::match(message))
|
||||
if (DeviceLimeSDRShared::MsgReportBuddyChange::match(message))
|
||||
{
|
||||
DeviceLimeSDRShared::MsgReportSampleRateDirChange& report = (DeviceLimeSDRShared::MsgReportSampleRateDirChange&) message;
|
||||
DeviceLimeSDRShared::MsgReportBuddyChange& report = (DeviceLimeSDRShared::MsgReportBuddyChange&) message;
|
||||
m_settings.m_devSampleRate = report.getDevSampleRate();
|
||||
m_settings.m_log2HardDecim = report.getLog2HardDecimInterp();
|
||||
|
||||
if (report.getRxElseTx()) {
|
||||
m_settings.m_centerFrequency = report.getCenterFrequency();
|
||||
}
|
||||
|
||||
blockApplySettings(true);
|
||||
displaySettings();
|
||||
blockApplySettings(false);
|
||||
|
||||
Reference in New Issue
Block a user