get rid of strings

This commit is contained in:
J. Nick Koston 2023-06-07 10:00:17 -05:00
parent 7ba40df46e
commit af5a1f33ec
No known key found for this signature in database
1 changed files with 1 additions and 4 deletions

View File

@ -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()