diff --git a/components/ratgdo/ratgdo.cpp b/components/ratgdo/ratgdo.cpp index 8b04a8c..781573e 100644 --- a/components/ratgdo/ratgdo.cpp +++ b/components/ratgdo/ratgdo.cpp @@ -502,7 +502,7 @@ namespace ratgdo { void RATGDOComponent::sendMotorStatus() { - MotorState val = static_cast(this->MotorState); + MotorState val = static_cast(this->motorState); ESP_LOGD(TAG, "Motor state %s", motor_state_to_string(val)); for (auto* child : this->children_) { child->on_motor_state(val);