mirror of
https://github.com/f4exb/sdrangel.git
synced 2025-02-03 09:44:01 -05:00
LimeSDR: fixed missing message handling for external clock change
This commit is contained in:
parent
5a2b16d464
commit
41eaa957f1
@ -158,6 +158,19 @@ bool LimeSDROutputGUI::handleMessage(const Message& message)
|
|||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
else if (DeviceLimeSDRShared::MsgReportClockSourceChange::match(message))
|
||||||
|
{
|
||||||
|
DeviceLimeSDRShared::MsgReportClockSourceChange& report = (DeviceLimeSDRShared::MsgReportClockSourceChange&) message;
|
||||||
|
m_settings.m_extClockFreq = report.getExtClockFeq();
|
||||||
|
m_settings.m_extClock = report.getExtClock();
|
||||||
|
|
||||||
|
blockApplySettings(true);
|
||||||
|
ui->extClock->setExternalClockFrequency(m_settings.m_extClockFreq);
|
||||||
|
ui->extClock->setExternalClockActive(m_settings.m_extClock);
|
||||||
|
blockApplySettings(false);
|
||||||
|
|
||||||
|
return true;
|
||||||
|
}
|
||||||
else if (LimeSDROutput::MsgReportStreamInfo::match(message))
|
else if (LimeSDROutput::MsgReportStreamInfo::match(message))
|
||||||
{
|
{
|
||||||
LimeSDROutput::MsgReportStreamInfo& report = (LimeSDROutput::MsgReportStreamInfo&) message;
|
LimeSDROutput::MsgReportStreamInfo& report = (LimeSDROutput::MsgReportStreamInfo&) message;
|
||||||
|
@ -140,6 +140,7 @@ bool LimeSDRInputGUI::deserialize(const QByteArray& data)
|
|||||||
|
|
||||||
bool LimeSDRInputGUI::handleMessage(const Message& message)
|
bool LimeSDRInputGUI::handleMessage(const Message& message)
|
||||||
{
|
{
|
||||||
|
|
||||||
if (DeviceLimeSDRShared::MsgReportBuddyChange::match(message))
|
if (DeviceLimeSDRShared::MsgReportBuddyChange::match(message))
|
||||||
{
|
{
|
||||||
DeviceLimeSDRShared::MsgReportBuddyChange& report = (DeviceLimeSDRShared::MsgReportBuddyChange&) message;
|
DeviceLimeSDRShared::MsgReportBuddyChange& report = (DeviceLimeSDRShared::MsgReportBuddyChange&) message;
|
||||||
@ -156,6 +157,19 @@ bool LimeSDRInputGUI::handleMessage(const Message& message)
|
|||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
else if (DeviceLimeSDRShared::MsgReportClockSourceChange::match(message))
|
||||||
|
{
|
||||||
|
DeviceLimeSDRShared::MsgReportClockSourceChange& report = (DeviceLimeSDRShared::MsgReportClockSourceChange&) message;
|
||||||
|
m_settings.m_extClockFreq = report.getExtClockFeq();
|
||||||
|
m_settings.m_extClock = report.getExtClock();
|
||||||
|
|
||||||
|
blockApplySettings(true);
|
||||||
|
ui->extClock->setExternalClockFrequency(m_settings.m_extClockFreq);
|
||||||
|
ui->extClock->setExternalClockActive(m_settings.m_extClock);
|
||||||
|
blockApplySettings(false);
|
||||||
|
|
||||||
|
return true;
|
||||||
|
}
|
||||||
else if (LimeSDRInput::MsgReportStreamInfo::match(message))
|
else if (LimeSDRInput::MsgReportStreamInfo::match(message))
|
||||||
{
|
{
|
||||||
LimeSDRInput::MsgReportStreamInfo& report = (LimeSDRInput::MsgReportStreamInfo&) message;
|
LimeSDRInput::MsgReportStreamInfo& report = (LimeSDRInput::MsgReportStreamInfo&) message;
|
||||||
|
Loading…
Reference in New Issue
Block a user