Allow for shorter IDs, flip direction

This commit is contained in:
Magnus Aagaard Sørensen
2021-02-22 07:27:30 +01:00
parent d7c70efc78
commit 51d49e8050
+2 -2
View File
@@ -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);
}