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) {
|
if (this->store_.motionState == MotionState::MOTION_STATE_DETECTED) {
|
||||||
sendMotionStatus();
|
sendMotionStatus();
|
||||||
this->store_.motionState = MotionState::MOTION_STATE_CLEAR;
|
this->store_.motionState = MotionState::MOTION_STATE_CLEAR;
|
||||||
|
sendMotionStatus();
|
||||||
}
|
}
|
||||||
|
|
||||||
previousDoorState = this->store_.doorState;
|
previousDoorState = this->store_.doorState;
|
||||||
|
@ -516,10 +517,6 @@ namespace ratgdo {
|
||||||
for (auto* child : this->children_) {
|
for (auto* child : this->children_) {
|
||||||
child->on_motion_state(val);
|
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()
|
void RATGDOComponent::sendObstructionStatus()
|
||||||
|
|
Loading…
Reference in New Issue