Merge branch 'master' of github.com:collin80/SavvyCAN into WIP
This commit is contained in:
+5
-1
@@ -1598,6 +1598,11 @@ bool FrameFileIO::loadCanDumpFile(QString filename, QVector<CANFrame>* frames)
|
|||||||
/* ID */
|
/* ID */
|
||||||
qDebug() << IdValExp.cap(1);
|
qDebug() << IdValExp.cap(1);
|
||||||
thisFrame.ID = IdValExp.cap(1).toInt(&ret, 16);
|
thisFrame.ID = IdValExp.cap(1).toInt(&ret, 16);
|
||||||
|
if (IdValExp.cap(1).length() > 3) {
|
||||||
|
thisFrame.extended = true;
|
||||||
|
} else {
|
||||||
|
thisFrame.extended = false;
|
||||||
|
}
|
||||||
if(!ret) continue;
|
if(!ret) continue;
|
||||||
|
|
||||||
QString val= IdValExp.cap(2);
|
QString val= IdValExp.cap(2);
|
||||||
@@ -1616,7 +1621,6 @@ bool FrameFileIO::loadCanDumpFile(QString filename, QVector<CANFrame>* frames)
|
|||||||
}
|
}
|
||||||
|
|
||||||
/*NB: should we make sure len <= 8? */
|
/*NB: should we make sure len <= 8? */
|
||||||
thisFrame.extended = false;
|
|
||||||
thisFrame.isReceived = true;
|
thisFrame.isReceived = true;
|
||||||
thisFrame.bus = 0;
|
thisFrame.bus = 0;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user