Skip to content

Commit

Permalink
Push exit event even if counter is 0
Browse files Browse the repository at this point in the history
  • Loading branch information
Lyr3x committed Dec 31, 2021
1 parent 8068185 commit e6eb6df
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions components/roode/roode.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -301,14 +301,14 @@ namespace esphome
{
peopleCounter--;
sendCounter(peopleCounter);
ESP_LOGD("Roode pathTracking", "Exit detected.");
if (entry_exit_event_sensor != nullptr)
{
entry_exit_event_sensor->publish_state("Exit");
}
DistancesTableSize[0] = 0;
DistancesTableSize[1] = 0;
}
ESP_LOGD("Roode pathTracking", "Exit detected.");
if (entry_exit_event_sensor != nullptr)
{
entry_exit_event_sensor->publish_state("Exit");
}
}
else if ((PathTrack[1] == 2) && (PathTrack[2] == 3) && (PathTrack[3] == 1))
{
Expand Down

0 comments on commit e6eb6df

Please sign in to comment.