kopia lustrzana https://gitlab.com/eliggett/wfview
Quieter debugging.
rodzic
60756480ce
commit
f1cb92c996
|
@ -205,8 +205,12 @@ void rigCommander::prepDataAndSend(QByteArray data)
|
||||||
//printHex(data, false, true);
|
//printHex(data, false, true);
|
||||||
data.append(payloadSuffix);
|
data.append(payloadSuffix);
|
||||||
#ifdef QT_DEBUG
|
#ifdef QT_DEBUG
|
||||||
|
if(data[4] != '\x15')
|
||||||
|
{
|
||||||
|
// We don't print out requests for meter levels
|
||||||
qDebug(logRig()) << "Final payload in rig commander to be sent to rig: ";
|
qDebug(logRig()) << "Final payload in rig commander to be sent to rig: ";
|
||||||
printHex(data, false, true);
|
printHex(data);
|
||||||
|
}
|
||||||
#endif
|
#endif
|
||||||
emit dataForComm(data);
|
emit dataForComm(data);
|
||||||
}
|
}
|
||||||
|
@ -788,10 +792,11 @@ void rigCommander::parseCommand()
|
||||||
// note: data already is trimmed of the beginning FE FE E0 94 stuff.
|
// note: data already is trimmed of the beginning FE FE E0 94 stuff.
|
||||||
|
|
||||||
#ifdef QT_DEBUG
|
#ifdef QT_DEBUG
|
||||||
if(payloadIn[00] != '\x27')
|
if( (payloadIn[00] != '\x27') && (payloadIn[00] != '\x15') )
|
||||||
{
|
{
|
||||||
// debug only
|
// We do not log spectrum and meter data,
|
||||||
printHex(payloadIn, false, true);
|
// as they tend to clog up any useful logging.
|
||||||
|
printHex(payloadIn);
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
Ładowanie…
Reference in New Issue