diff --git a/components/ratgdo/ratgdo.cpp b/components/ratgdo/ratgdo.cpp index 327bbee..ddb963c 100644 --- a/components/ratgdo/ratgdo.cpp +++ b/components/ratgdo/ratgdo.cpp @@ -221,7 +221,7 @@ namespace ratgdo { if (!this->obstruction_sensor_detected_) { if (obstruction_state != last_state) { ESP_LOGD(TAG, "Obstruction: state=%s", ObstructionState_to_string(*this->obstruction_state)); - last_state = obstruction_state; + last_state = obstruction_state; } this->obstruction_state = obstruction_state;