Merge pull request #103 from FabianInostroza/master
Fix DBC handler and DBCFile. Initialize as j1939 to false by default.
This commit is contained in:
@@ -214,6 +214,7 @@ void DBCMessageHandler::setJ1939(bool j1939)
|
|||||||
DBCFile::DBCFile()
|
DBCFile::DBCFile()
|
||||||
{
|
{
|
||||||
messageHandler = new DBCMessageHandler;
|
messageHandler = new DBCMessageHandler;
|
||||||
|
messageHandler->setJ1939(false);
|
||||||
}
|
}
|
||||||
|
|
||||||
DBCFile::DBCFile(const DBCFile& cpy)
|
DBCFile::DBCFile(const DBCFile& cpy)
|
||||||
@@ -346,6 +347,7 @@ void DBCFile::loadFile(QString fileName)
|
|||||||
qDebug() << "Starting DBC load";
|
qDebug() << "Starting DBC load";
|
||||||
dbc_nodes.clear();
|
dbc_nodes.clear();
|
||||||
messageHandler->removeAllMessages();
|
messageHandler->removeAllMessages();
|
||||||
|
messageHandler->setJ1939(false);
|
||||||
|
|
||||||
DBC_NODE falseNode;
|
DBC_NODE falseNode;
|
||||||
falseNode.name = "Vector__XXX";
|
falseNode.name = "Vector__XXX";
|
||||||
|
|||||||
Reference in New Issue
Block a user