Skip to content

Commit

Permalink
Reset mConsecutiveOnes when the Flag is received
Browse files Browse the repository at this point in the history
Closing #1
  • Loading branch information
EngelthalerZAT committed May 7, 2021
1 parent 27da2a6 commit 614799b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/HdlcAnalyzer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -318,6 +318,7 @@ HdlcByte HdlcAnalyzer::BitSyncReadByte()
mHdlc->AdvanceToNextEdge();
U64 endSample = mHdlc->GetSampleNumber();
mFoundEndFlag = true;
mConsecutiveOnes = 0;
HdlcByte bs = { startSample, endSample, HDLC_FLAG_VALUE };
return bs;
}
Expand Down

0 comments on commit 614799b

Please sign in to comment.