Index: main.cpp =================================================================== diff -u -r460df093c4475816fc25d6b4c3ebfc50424ccca3 -r4c1551d45b40987c2d59c11e95760e9b6c55fc68 --- main.cpp (.../main.cpp) (revision 460df093c4475816fc25d6b4c3ebfc50424ccca3) +++ main.cpp (.../main.cpp) (revision 4c1551d45b40987c2d59c11e95760e9b6c55fc68) @@ -25,6 +25,7 @@ #include #include #include +#include // Project #include "maintimer.h" @@ -53,6 +54,17 @@ QCoreApplication::setApplicationName(QLatin1String("Denali")); QCoreApplication::setOrganizationName(QLatin1String("Diality Inc.")); + // Test code for debugging can messages + bool _consoleoutMessageHandler = false; + bool _consoleoutCanInterface = false; + QStringList args = app.arguments(); + if (args.length() >= 2) { + _consoleoutMessageHandler = args[1] == "1"; + } + if (args.length() >= 3) { + _consoleoutCanInterface = args[2] == "1"; + } + //! - Setting the application version regarding the Bamboo build number. QString ver_revis = QString("%1").arg(VER_REVIS); if (ver_revis.isEmpty()) { @@ -75,14 +87,14 @@ //! - Initializing CanBus Interface _CanInterface->init(); - _CanInterface->enableConsoleOut(false); + _CanInterface->enableConsoleOut(_consoleoutCanInterface); //! - Initializing CanBus Message Handler _MessageHandler->init(); //! - Initializing CanBus Message Dispatcher _MessageDispatcher->init(); - _MessageDispatcher->enableConsoleOut(false); + _MessageDispatcher->enableConsoleOut(_consoleoutMessageHandler); //! - Initializing Application Controller _ApplicationController->init();