Index: sources/canbus/FrameInterface.cpp =================================================================== diff -u -r27cc308ff5113a9386899d3c8f8b29962a8498e1 -r526875e8db8cf0c97f5cd8aa90564e41d42f5fde --- sources/canbus/FrameInterface.cpp (.../FrameInterface.cpp) (revision 27cc308ff5113a9386899d3c8f8b29962a8498e1) +++ sources/canbus/FrameInterface.cpp (.../FrameInterface.cpp) (revision 526875e8db8cf0c97f5cd8aa90564e41d42f5fde) @@ -178,9 +178,13 @@ case eDG_Dialin: case eDialin_UI: case eUI_Dialin: - channelGroup = ChannelGroup::eChannel_Ignores; + if ( gEnableDialinUnhandled ) { + channelGroup = ChannelGroup::eChannel_Listens; + } else { + channelGroup = ChannelGroup::eChannel_Ignores; + } debugChannel = true; - ok = false; // it's still false since UI is not handling any messages coming from Debug Channels. + ok = gEnableDialinUnhandled; 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; }