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