mirror of
https://github.com/f4exb/sdrangel.git
synced 2025-05-24 19:22:27 -04:00
LimeSDR output: optimize get device info by checking buddy leadership in the GUI
This commit is contained in:
parent
b867cf2335
commit
efe921ffe7
@ -431,14 +431,12 @@ bool LimeSDROutput::handleMessage(const Message& message)
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
else if (MsgGetDeviceInfo::match(message))
|
else if (MsgGetDeviceInfo::match(message))
|
||||||
{
|
|
||||||
if (m_deviceAPI->isBuddyLeader())
|
|
||||||
{
|
{
|
||||||
double temp = 0.0;
|
double temp = 0.0;
|
||||||
|
|
||||||
if (m_deviceShared.m_deviceParams->getDevice() && (LMS_GetChipTemperature(m_deviceShared.m_deviceParams->getDevice(), 0, &temp) == 0))
|
if (m_deviceShared.m_deviceParams->getDevice() && (LMS_GetChipTemperature(m_deviceShared.m_deviceParams->getDevice(), 0, &temp) == 0))
|
||||||
{
|
{
|
||||||
qDebug("LimeSDROutput::handleMessage: MsgGetDeviceInfo: temperature: %f", temp);
|
//qDebug("LimeSDROutput::handleMessage: MsgGetDeviceInfo: temperature: %f", temp);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
@ -468,7 +466,6 @@ bool LimeSDROutput::handleMessage(const Message& message)
|
|||||||
DeviceLimeSDRShared::MsgReportDeviceInfo *report = DeviceLimeSDRShared::MsgReportDeviceInfo::create(temp);
|
DeviceLimeSDRShared::MsgReportDeviceInfo *report = DeviceLimeSDRShared::MsgReportDeviceInfo::create(temp);
|
||||||
(*itSink)->getDeviceOutputMessageQueue()->push(report);
|
(*itSink)->getDeviceOutputMessageQueue()->push(report);
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
@ -341,9 +341,13 @@ void LimeSDROutputGUI::updateStatus()
|
|||||||
m_deviceStatusCounter++;
|
m_deviceStatusCounter++;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
{
|
||||||
|
if (m_deviceAPI->isBuddyLeader())
|
||||||
{
|
{
|
||||||
LimeSDROutput::MsgGetDeviceInfo* message = LimeSDROutput::MsgGetDeviceInfo::create();
|
LimeSDROutput::MsgGetDeviceInfo* message = LimeSDROutput::MsgGetDeviceInfo::create();
|
||||||
m_sampleSink->getInputMessageQueue()->push(message);
|
m_sampleSink->getInputMessageQueue()->push(message);
|
||||||
|
}
|
||||||
|
|
||||||
m_deviceStatusCounter = 0;
|
m_deviceStatusCounter = 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user