Index: sources/canbus/FrameInterface.cpp =================================================================== diff -u -r119cd695daee08e15d7a4132b0a64c6c2242fb44 -rba662b0a7772c952a1947c93f623d8907f2c7278 --- sources/canbus/FrameInterface.cpp (.../FrameInterface.cpp) (revision 119cd695daee08e15d7a4132b0a64c6c2242fb44) +++ sources/canbus/FrameInterface.cpp (.../FrameInterface.cpp) (revision ba662b0a7772c952a1947c93f623d8907f2c7278) @@ -178,9 +178,13 @@ case eDG_Dialin: case eDialin_UI: case eUI_Dialin: - channelGroup = ChannelGroup::eChannel_Listens; - debugChannel = true; - ok = true; // it's still false since UI is not handling any messages coming from Debug Channels. + if ( gEnableDialinUnhandled ) { + channelGroup = ChannelGroup::eChannel_Listens; + } else { + channelGroup = ChannelGroup::eChannel_Ignores; + } + 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 : @@ -241,11 +245,17 @@ quint32 mFrameId = vFrame.frameId(); ChannelGroup channelGroup = checkChannel(mFrameId, &ok, &debugChannel); - if (!ok) { - QString message = "Unexpected Channel\r\n"; - if (debugChannel) message = "Debug Channel\r\n"; - LOG_DEBUG(message + - Format::toHexString(mFrameId, false, eLenChannelDigits) + " -- " + vFrame.payload().toHex(' ')); + + QString logMessage; + if ( debugChannel ) { + logMessage = "Debug Channel\r\n" + + Format::toHexString(mFrameId, false, eLenChannelDigits) + " -- " + vFrame.payload().toHex(' '); + LOG_DEBUG(logMessage); + } + if ( ! ok ) { + logMessage = "Unexpected Channel\r\n" + + Format::toHexString(mFrameId, false, eLenChannelDigits) + " -- " + vFrame.payload().toHex(' '); + LOG_DEBUG(logMessage); return; }