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