Fixed too early reset

This commit is contained in:
Maximilian Giller 2021-12-03 18:23:09 +01:00
parent 12602f4579
commit 8b28cd0f7c

View file

@ -66,7 +66,7 @@ class PeopleCounter ():
self.handleTriggerCallbacks() self.handleTriggerCallbacks()
# Reset records # Reset records
if changed != 0: if countChange != 0:
self.directionState = self.getInitialDirectionState() self.directionState = self.getInitialDirectionState()
self.sensor.close() self.sensor.close()