Skip to content

Commit

Permalink
allow duplicated cc for same pid. (#33)
Browse files Browse the repository at this point in the history
* okay to repeate continuity counter

* remove commented code

---------

Co-authored-by: Chris Kennedy <[email protected]>
  • Loading branch information
groovybits and ltn-chriskennedy authored Dec 19, 2023
1 parent 2c2cf35 commit f75a66a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/bin/probe.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit f75a66a

Please sign in to comment.