diff --git a/components/ratgdo/ratgdo.cpp b/components/ratgdo/ratgdo.cpp index 1946df6..355adc3 100644 --- a/components/ratgdo/ratgdo.cpp +++ b/components/ratgdo/ratgdo.cpp @@ -400,7 +400,7 @@ namespace ratgdo { void RATGDOComponent::sendMotionStatus(){ ESP_LOGD(TAG, "Motion state %d", this->store_.motionState); - motionState = 0; // reset motion state + this->store_.motionState = 0; // reset motion state } void RATGDOComponent::sendObstructionStatus(){