From 9799e1405b8de906d1c556a34fbd00a196bb083b Mon Sep 17 00:00:00 2001 From: mgfcf Date: Fri, 3 Dec 2021 18:37:14 +0100 Subject: [PATCH] Fixed wrong argument count --- src/sensor/people_counter.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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