get rid of strings
This commit is contained in:
parent
7ba40df46e
commit
af5a1f33ec
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue