Fixed too early reset
This commit is contained in:
parent
12602f4579
commit
8b28cd0f7c
1 changed files with 1 additions and 1 deletions
|
@ -66,7 +66,7 @@ class PeopleCounter ():
|
|||
self.handleTriggerCallbacks()
|
||||
|
||||
# Reset records
|
||||
if changed != 0:
|
||||
if countChange != 0:
|
||||
self.directionState = self.getInitialDirectionState()
|
||||
|
||||
self.sensor.close()
|
||||
|
|
Loading…
Reference in a new issue