From 614799ba2718323d54c6c294cae8c7c499099190 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ji=C5=99=C3=AD=20Engelthaler?= Date: Fri, 7 May 2021 08:18:01 +0200 Subject: [PATCH] Reset mConsecutiveOnes when the Flag is received Closing #1 --- src/HdlcAnalyzer.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/HdlcAnalyzer.cpp b/src/HdlcAnalyzer.cpp index 7004251..1407c6a 100644 --- a/src/HdlcAnalyzer.cpp +++ b/src/HdlcAnalyzer.cpp @@ -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; }