Index: sources/canbus/MessageInterpreter.cpp =================================================================== diff -u -rf91ee3bac4f77fc7a0fe8d122c8c49b34b6984ec -ra3c0d4e8bdd6bc44ad648afaba34ac33bcc46ad8 --- sources/canbus/MessageInterpreter.cpp (.../MessageInterpreter.cpp) (revision f91ee3bac4f77fc7a0fe8d122c8c49b34b6984ec) +++ sources/canbus/MessageInterpreter.cpp (.../MessageInterpreter.cpp) (revision a3c0d4e8bdd6bc44ad648afaba34ac33bcc46ad8) @@ -20,6 +20,7 @@ // Project #include "format.h" +#include "Settings.h" using namespace Can; @@ -403,8 +404,16 @@ */ void MessageInterpreter::updateUnhandledMessages() { - // TODO is this needed? - qDebug() << "Update"; + QString category = Storage::Settings_Category_MessagesUnhandled; + QStringList groups = _Settings.groups(category); + // DEBUG: qDebug() << groups; + for(const auto &group: qAsConst(groups)) { + bool ok; + quint16 id = QString(group).toUInt(&ok,16); + if (!ok) continue; + _messageList[ id ] = _Settings.keys(category, group); + // DEBUG: qDebug() << _Settings.keys(group); + } } /*! @@ -482,6 +491,7 @@ //if ( gDisableUnhandledReport ) { // if the unhandled message error has been disabled, return. // LOG_DEBUG(QString("Undefined unhandled message [%1]").arg(id, 0, 16)); //} // TODO is this needed? + qDebug() << "H" + logString; } return ok; }