Fix DBC handler and DBCFile. Initialize j1939 attribute to false by default.

This commit is contained in:
Fabián Inostroza
2017-11-03 01:12:18 -03:00
parent 8c77e1c7ce
commit 077cb223e0
+2
View File
@@ -214,6 +214,7 @@ void DBCMessageHandler::setJ1939(bool j1939)
DBCFile::DBCFile()
{
messageHandler = new DBCMessageHandler;
messageHandler->setJ1939(false);
}
DBCFile::DBCFile(const DBCFile& cpy)
@@ -346,6 +347,7 @@ void DBCFile::loadFile(QString fileName)
qDebug() << "Starting DBC load";
dbc_nodes.clear();
messageHandler->removeAllMessages();
messageHandler->setJ1939(false);
DBC_NODE falseNode;
falseNode.name = "Vector__XXX";