mirror of https://github.com/f4exb/sdrangel.git
LimeSDR input: optimize get device info by checking buddy leadership in the GUI
This commit is contained in:
parent
37df628719
commit
b867cf2335
|
@ -442,8 +442,6 @@ bool LimeSDRInput::handleMessage(const Message& message)
|
|||
return true;
|
||||
}
|
||||
else if (MsgGetDeviceInfo::match(message))
|
||||
{
|
||||
if (m_deviceAPI->isBuddyLeader())
|
||||
{
|
||||
double temp = 0.0;
|
||||
|
||||
|
@ -479,7 +477,6 @@ bool LimeSDRInput::handleMessage(const Message& message)
|
|||
DeviceLimeSDRShared::MsgReportDeviceInfo *report = DeviceLimeSDRShared::MsgReportDeviceInfo::create(temp);
|
||||
(*itSink)->getDeviceOutputMessageQueue()->push(report);
|
||||
}
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
|
|
@ -347,9 +347,13 @@ void LimeSDRInputGUI::updateStatus()
|
|||
m_deviceStatusCounter++;
|
||||
}
|
||||
else
|
||||
{
|
||||
if (m_deviceAPI->isBuddyLeader())
|
||||
{
|
||||
LimeSDRInput::MsgGetDeviceInfo* message = LimeSDRInput::MsgGetDeviceInfo::create();
|
||||
m_sampleSource->getInputMessageQueue()->push(message);
|
||||
}
|
||||
|
||||
m_deviceStatusCounter = 0;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue