From af5a1f33ec97fd00f2e3557252f4f96e97934a6a Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Wed, 7 Jun 2023 10:00:17 -0500 Subject: [PATCH] get rid of strings --- components/ratgdo/ratgdo.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/components/ratgdo/ratgdo.cpp b/components/ratgdo/ratgdo.cpp index 26c9dbe..88983d7 100644 --- a/components/ratgdo/ratgdo.cpp +++ b/components/ratgdo/ratgdo.cpp @@ -473,6 +473,7 @@ namespace ratgdo { if (this->store_.motionState == MotionState::MOTION_STATE_DETECTED) { sendMotionStatus(); this->store_.motionState = MotionState::MOTION_STATE_CLEAR; + sendMotionStatus(); } previousDoorState = this->store_.doorState; @@ -516,10 +517,6 @@ namespace ratgdo { for (auto* child : this->children_) { child->on_motion_state(val); } - this->store_.motionState = MotionState::MOTION_STATE_CLEAR; // reset motion state - for (auto* child : this->children_) { - child->on_motion_state(MotionState::MOTION_STATE_CLEAR); - } } void RATGDOComponent::sendObstructionStatus()