From 040364c10d35ed40c579093912c6d4e93a93ac09 Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Fri, 9 Jun 2023 19:39:03 -0500 Subject: [PATCH] fix typo --- components/ratgdo/ratgdo.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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_) {