Added signal comparison to the file comparison window. Very poor, slow

proof of concept inplementation - will be improved soon.
This commit is contained in:
Collin Kidder
2021-05-04 22:36:09 -04:00
parent 93f6d1f6cd
commit 45193c1fad
5 changed files with 173 additions and 5 deletions
+12
View File
@@ -1930,6 +1930,18 @@ DBC_MESSAGE* DBCHandler::findMessage(const CANFrame &frame)
return nullptr;
}
DBC_MESSAGE* DBCHandler::findMessage(uint32_t id)
{
for(int i = 0; i < loadedFiles.count(); i++)
{
DBC_MESSAGE* msg = loadedFiles[i].messageHandler->findMsgByID(id);
if (msg != nullptr)
{
return msg;
}
}
return nullptr;
}
// This function won't care which bus the DBC file is associated, but will return any message as long as ID matches and the file
// has filter labeling enabled.