Skip to content

Commit

Permalink
Moved lawicel autodetector down the list as it is a bit overly generic
Browse files Browse the repository at this point in the history
and falsely loaded some files it shouldn't.
  • Loading branch information
collin80 committed Jul 12, 2023
1 parent 0f32533 commit 65cbb3f
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions framefileio.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -369,16 +369,6 @@ bool FrameFileIO::autoDetectLoadFile(QString filename, QVector<CANFrame>* frames
}
}

qDebug() << "Attempting lawicel";
if (isLawicelFile(filename))
{
if (loadLawicelFile(filename, frames))
{
qDebug() << "Loaded as lawicel successfully!";
return true;
}
}

qDebug() << "Attempting 'CARBUS Analyzer'";
if (isCARBUSAnalyzerFile(filename))
{
Expand Down Expand Up @@ -494,6 +484,16 @@ bool FrameFileIO::autoDetectLoadFile(QString filename, QVector<CANFrame>* frames
}
}

qDebug() << "Attempting lawicel";
if (isLawicelFile(filename))
{
if (loadLawicelFile(filename, frames))
{
qDebug() << "Loaded as lawicel successfully!";
return true;
}
}

qDebug() << "Attempting generic CSV";
if (isGenericCSVFile(filename))
{
Expand Down

0 comments on commit 65cbb3f

Please sign in to comment.