From f75a66a20a883419e1348724d95486eea6dde3a0 Mon Sep 17 00:00:00 2001 From: Chris Kennedy Date: Tue, 19 Dec 2023 14:26:37 -0800 Subject: [PATCH] allow duplicated cc for same pid. (#33) * okay to repeate continuity counter * remove commented code --------- Co-authored-by: Chris Kennedy --- src/bin/probe.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bin/probe.rs b/src/bin/probe.rs index fd008e4b..d07fd605 100644 --- a/src/bin/probe.rs +++ b/src/bin/probe.rs @@ -229,7 +229,7 @@ impl StreamData { let previous_continuity_counter = self.continuity_counter; self.continuity_counter = continuity_counter & 0x0F; // check if we incremented without loss - if self.continuity_counter != previous_continuity_counter + 1 { + if self.continuity_counter != previous_continuity_counter + 1 && self.continuity_counter != previous_continuity_counter { // check if we wrapped around from 15 to 0 if self.continuity_counter == 0 { // check if previous value was 15