1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2026-06-02 06:04:39 -04:00

LimeSDR: removed obsolete message. Only stop current side threads if changing center frequency

This commit is contained in:
f4exb
2017-10-24 02:41:54 +02:00
parent 238c8d312e
commit 2572f2be84
8 changed files with 16 additions and 310 deletions
@@ -139,22 +139,7 @@ bool LimeSDRInputGUI::deserialize(const QByteArray& data)
bool LimeSDRInputGUI::handleMessage(const Message& message)
{
if (LimeSDRInput::MsgReportLimeSDRToBuddy::match(message))
{
qDebug("LimeSDRInputGUI::handleMessagesToGUI: message: %s", message.getIdentifier());
LimeSDRInput::MsgReportLimeSDRToBuddy& report = (LimeSDRInput::MsgReportLimeSDRToBuddy&) message;
m_settings.m_centerFrequency = report.getCenterFrequency();
m_settings.m_devSampleRate = report.getSampleRate();
m_settings.m_log2HardDecim = report.getLog2HardDecim();
blockApplySettings(true);
displaySettings();
blockApplySettings(false);
return true;
}
else if (DeviceLimeSDRShared::MsgReportSampleRateDirChange::match(message))
if (DeviceLimeSDRShared::MsgReportSampleRateDirChange::match(message))
{
DeviceLimeSDRShared::MsgReportSampleRateDirChange& report = (DeviceLimeSDRShared::MsgReportSampleRateDirChange&) message;
m_settings.m_devSampleRate = report.getDevSampleRate();
@@ -166,18 +151,6 @@ bool LimeSDRInputGUI::handleMessage(const Message& message)
return true;
}
else if (DeviceLimeSDRShared::MsgCrossReportToBuddy::match(message))
{
qDebug("LimeSDRInputGUI::handleMessagesToGUI: message: %s", message.getIdentifier());
DeviceLimeSDRShared::MsgCrossReportToBuddy& report = (DeviceLimeSDRShared::MsgCrossReportToBuddy&) message;
m_settings.m_devSampleRate = report.getSampleRate(); // TODO: remove from here should be done device to device
blockApplySettings(true);
displaySettings();
blockApplySettings(false);
return true;
}
else if (LimeSDRInput::MsgReportStreamInfo::match(message))
{
LimeSDRInput::MsgReportStreamInfo& report = (LimeSDRInput::MsgReportStreamInfo&) message;