diff --git a/src/sensor/people_counter.py b/src/sensor/people_counter.py index 980fcbb..6a6d16c 100644 --- a/src/sensor/people_counter.py +++ b/src/sensor/people_counter.py @@ -61,7 +61,7 @@ class PeopleCounter (): countChange: int = self.getCountChange(self.directionState) # Hooks - th = threading.Thread(target=self.handleCallbacks, args=(self,countChange)) + th = threading.Thread(target=self.handleCallbacks, args=(countChange,)) th.start() # Reset records