Allow for shorter IDs, flip direction
This commit is contained in:
+2
-2
@@ -4375,7 +4375,7 @@ bool FrameFileIO::loadCLX000File(QString filename, QVector<CANFrame>* frames) {
|
|||||||
pattern += valueSeparator;
|
pattern += valueSeparator;
|
||||||
}
|
}
|
||||||
if(presentFields.contains("ID")) {
|
if(presentFields.contains("ID")) {
|
||||||
pattern += "(?<id>[a-fA-F\\d]{3,8})";
|
pattern += "(?<id>[a-fA-F\\d]{1,8})";
|
||||||
pattern += valueSeparator;
|
pattern += valueSeparator;
|
||||||
}
|
}
|
||||||
if(presentFields.contains("Length")) {
|
if(presentFields.contains("Length")) {
|
||||||
@@ -4418,7 +4418,7 @@ bool FrameFileIO::loadCLX000File(QString filename, QVector<CANFrame>* frames) {
|
|||||||
if(res.captured("type").length() != 0) {
|
if(res.captured("type").length() != 0) {
|
||||||
auto frameType = res.captured("type").toUInt();
|
auto frameType = res.captured("type").toUInt();
|
||||||
|
|
||||||
currentFrame.isReceived = (frameType & 0x08);
|
currentFrame.isReceived = !(frameType & 0x08);
|
||||||
currentFrame.setExtendedFrameFormat(frameType & 0x01);
|
currentFrame.setExtendedFrameFormat(frameType & 0x01);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user