diff --git a/components/ratgdo/ratgdo.cpp b/components/ratgdo/ratgdo.cpp index e9e40a6..88a5442 100644 --- a/components/ratgdo/ratgdo.cpp +++ b/components/ratgdo/ratgdo.cpp @@ -316,7 +316,7 @@ namespace ratgdo { } this->previousMotorState = this->motorState; } - if (this->motionState == this->previousMotionState) { + if (this->motionState != this->previousMotionState) { MotionState val = static_cast(this->motionState); ESP_LOGD(TAG, "Motion state %s", motion_state_to_string(val)); for (auto* child : this->children_) {