Skip to content

Commit

Permalink
added FrameV2 support
Browse files Browse the repository at this point in the history
  • Loading branch information
Marcus10110 committed Jun 2, 2020
1 parent 8cab131 commit eedf639
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/ManchesterAnalyzer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -415,10 +415,13 @@ void ManchesterAnalyzer::SaveBit( U64 location, U32 value )
byte |= ( mBitsForNextByte[ i ].first << i );
}
Frame frame;
FrameV2 frame_v2;
frame.mStartingSampleInclusive = mBitsForNextByte[ 0 ].second - ( mT / 2 );
frame.mEndingSampleInclusive = location + ( mT / 2 );
frame.mData1 = byte;
mResults->AddFrame( frame );
frame_v2.AddInteger( "data", byte );
mResults->AddFrameV2( frame_v2, "data", frame.mStartingSampleInclusive, frame.mEndingSampleInclusive );
mBitsForNextByte.clear();
mResults->CommitResults();
ReportProgress( mManchester->GetSampleNumber() );
Expand Down

0 comments on commit eedf639

Please sign in to comment.