diff --git a/src/peoplecounter.py b/src/peoplecounter.py index a7c8cf0..15c24cb 100644 --- a/src/peoplecounter.py +++ b/src/peoplecounter.py @@ -116,7 +116,7 @@ class PeopleCounter (): cb(countChange) def updateState(self, direction: Directions, triggered: bool) -> bool: - currentlyTriggered = self.directionState[direction] == None + currentlyTriggered = self.directionState[direction][END_TIME] == None if triggered and not currentlyTriggered: # Set as new beginning for this direction