Skip to content

Commit

Permalink
fixed CRC reset with classic identifiers in V2, thanks to several use…
Browse files Browse the repository at this point in the history
…r reports.

removed unused local variable.
  • Loading branch information
Marcus10110 committed Mar 29, 2021
1 parent ae3b3ec commit c0d0ebb
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/LINAnalyzer.cpp
Expand Up @@ -141,7 +141,7 @@ void LINAnalyzer::WorkerThread()
bool classic_identifier = false;
U8 identifier = byteFrame.mData1 & 0x3F;
if( identifier == 0x3C || identifier == 0x3D )
classic_identifier == true;
classic_identifier = true;

mChecksum.clear();
if( mSettings->mLINVersion >= 2 && classic_identifier == false )
Expand Down
1 change: 0 additions & 1 deletion src/LINAnalyzerResults.cpp
Expand Up @@ -155,7 +155,6 @@ void LINAnalyzerResults::GenerateExportFile( const char* file, DisplayBase displ
U64 num_frames = GetNumFrames();
for( U64 i = 0; i < num_frames; i++ )
{
U64 j;
Frame frame = GetFrame( i );

if( frame.mType == headerBreak )
Expand Down
2 changes: 1 addition & 1 deletion src/LINSimulationDataGenerator.cpp
Expand Up @@ -59,7 +59,7 @@ void LINSimulationDataGenerator::CreateBadFrame()
U8 identifier = CreateHeader();
bool classic_identifier = false;
if( identifier == 0x3C || identifier == 0x3D )
classic_identifier == true;
classic_identifier = true;

if( mSettings->mLINVersion < 2 || classic_identifier == true )
mChecksum.clear(); // Version 1 starts chksum at first data byte.
Expand Down

0 comments on commit c0d0ebb

Please sign in to comment.