Index: sources/canbus/FrameInterface.cpp =================================================================== diff -u -r301c0a2101eb9374145ae274c8d91460fc9a6a62 -r0c983aea7de7480e86739469f5a64ad18b244634 --- sources/canbus/FrameInterface.cpp (.../FrameInterface.cpp) (revision 301c0a2101eb9374145ae274c8d91460fc9a6a62) +++ sources/canbus/FrameInterface.cpp (.../FrameInterface.cpp) (revision 0c983aea7de7480e86739469f5a64ad18b244634) @@ -183,8 +183,8 @@ } else { channelGroup = ChannelGroup::eChannel_Ignores; } - debugChannel = true; - ok = gEnableDialinUnhandled; + debugChannel = ! gEnableDialinUnhandled; // if debug channel is true, the raw can message in logged in the service log. + ok = gEnableDialinUnhandled; // if ok is true then it will be interpreted as unhandled messages. break; case eChlid_HD_DG : @@ -278,7 +278,7 @@ void FrameInterface::onFrameTransmit(Can_Id vCan_Id, const QByteArray &vData) { appendHead(vCan_Id, vData); - // Test : qDebug() << _timestamp << "apnd #" << _txFrameList.count(); + // DEBUG: qDebug() << _timestamp << "apnd #" << _txFrameList.count(); } /*! @@ -289,7 +289,7 @@ { _transmitted = true; removeHead(); - // Test : qDebug() << _timestamp << "Sent #" << _txFrameList.count() << vCount; + // DEBUG: qDebug() << _timestamp << "Sent #" << _txFrameList.count() << vCount; } /*! @@ -299,10 +299,10 @@ void FrameInterface::timerEvent(QTimerEvent *) { static quint8 count = 0; - // Test : _timestamp = QTime::currentTime().toString("HH:mm:ss.zzz"); + // TEST : _timestamp = QTime::currentTime().toString("HH:mm:ss.zzz"); if (++count != _interval) return; - // Test : qDebug() << _timestamp; + // DEBUG: qDebug() << _timestamp; count = 0; _transmitted = false; trnsmtHead(); @@ -329,7 +329,7 @@ else { Frame frame = _txFrameList.first(); transmitFrame(frame.can_Id, frame.data); - // Test : qDebug() << _timestamp << "Tsmt #" << _txFrameList.count(); + // DEBUG: qDebug() << _timestamp << "Tsmt #" << _txFrameList.count(); } }