mirror of
https://github.com/f4exb/sdrangel.git
synced 2025-09-04 22:27:53 -04:00
XTRX input: removed excessive logging during message handling
This commit is contained in:
parent
00beb34f2e
commit
7cef8cc2ab
@ -535,8 +535,6 @@ bool XTRXInput::handleMessage(const Message& message)
|
|||||||
}
|
}
|
||||||
else if (MsgGetStreamInfo::match(message))
|
else if (MsgGetStreamInfo::match(message))
|
||||||
{
|
{
|
||||||
qDebug() << "XTRXInput::handleMessage: MsgGetStreamInfo";
|
|
||||||
|
|
||||||
if (m_deviceAPI->getSampleSourceGUIMessageQueue())
|
if (m_deviceAPI->getSampleSourceGUIMessageQueue())
|
||||||
{
|
{
|
||||||
uint64_t fifolevel;
|
uint64_t fifolevel;
|
||||||
@ -557,23 +555,20 @@ bool XTRXInput::handleMessage(const Message& message)
|
|||||||
0);
|
0);
|
||||||
m_deviceAPI->getSampleSourceGUIMessageQueue()->push(report);
|
m_deviceAPI->getSampleSourceGUIMessageQueue()->push(report);
|
||||||
}
|
}
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
else if (MsgGetDeviceInfo::match(message))
|
else if (MsgGetDeviceInfo::match(message))
|
||||||
{
|
{
|
||||||
double temp = 0.0;
|
double temp = 0.0;
|
||||||
if (m_deviceShared.m_deviceParams->getDevice() && (
|
|
||||||
(temp = m_deviceShared.get_temperature() / 256.0) != 0.0))
|
if (!m_deviceShared.m_deviceParams->getDevice() || ((temp = m_deviceShared.get_temperature() / 256.0) == 0.0)) {
|
||||||
{
|
|
||||||
qDebug("XTRXInput::handleMessage: MsgGetDeviceInfo: temperature: %f", temp);
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
qDebug("XTRXInput::handleMessage: MsgGetDeviceInfo: cannot get temperature");
|
qDebug("XTRXInput::handleMessage: MsgGetDeviceInfo: cannot get temperature");
|
||||||
}
|
}
|
||||||
|
|
||||||
// send to oneself
|
// send to oneself
|
||||||
if (m_deviceAPI->getSampleSourceGUIMessageQueue()) {
|
if (m_deviceAPI->getSampleSourceGUIMessageQueue())
|
||||||
|
{
|
||||||
DeviceXTRXShared::MsgReportDeviceInfo *report = DeviceXTRXShared::MsgReportDeviceInfo::create(temp);
|
DeviceXTRXShared::MsgReportDeviceInfo *report = DeviceXTRXShared::MsgReportDeviceInfo::create(temp);
|
||||||
m_deviceAPI->getSampleSourceGUIMessageQueue()->push(report);
|
m_deviceAPI->getSampleSourceGUIMessageQueue()->push(report);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user