1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2026-06-01 21:54:55 -04:00

XTRX input: removed excessive logging during message handling

This commit is contained in:
f4exb
2018-12-29 03:22:37 +01:00
parent 00beb34f2e
commit 7cef8cc2ab
+5 -10
View File
@@ -535,8 +535,6 @@ bool XTRXInput::handleMessage(const Message& message)
}
else if (MsgGetStreamInfo::match(message))
{
qDebug() << "XTRXInput::handleMessage: MsgGetStreamInfo";
if (m_deviceAPI->getSampleSourceGUIMessageQueue())
{
uint64_t fifolevel;
@@ -557,23 +555,20 @@ bool XTRXInput::handleMessage(const Message& message)
0);
m_deviceAPI->getSampleSourceGUIMessageQueue()->push(report);
}
return true;
}
else if (MsgGetDeviceInfo::match(message))
{
double temp = 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
{
if (!m_deviceShared.m_deviceParams->getDevice() || ((temp = m_deviceShared.get_temperature() / 256.0) == 0.0)) {
qDebug("XTRXInput::handleMessage: MsgGetDeviceInfo: cannot get temperature");
}
// send to oneself
if (m_deviceAPI->getSampleSourceGUIMessageQueue()) {
if (m_deviceAPI->getSampleSourceGUIMessageQueue())
{
DeviceXTRXShared::MsgReportDeviceInfo *report = DeviceXTRXShared::MsgReportDeviceInfo::create(temp);
m_deviceAPI->getSampleSourceGUIMessageQueue()->push(report);
}