From 543ddf79b47b3faca25746c9e6bc05821e4a60d3 Mon Sep 17 00:00:00 2001 From: Pascal Serrarens Date: Tue, 2 Jul 2024 11:33:53 +0200 Subject: [PATCH] Cleanup --- ServoMotor.cpp | 3 --- 1 file changed, 3 deletions(-) diff --git a/ServoMotor.cpp b/ServoMotor.cpp index b19bda6..070b06a 100644 --- a/ServoMotor.cpp +++ b/ServoMotor.cpp @@ -16,9 +16,6 @@ void ServoMotor::SetTargetAngle(float angle) { if (maxVelocity == 0.0F || hasTargetAngle == false) { SetAngle(angle); this->limitedTargetAngle = angle; - } else if (angle != this->targetAngle) { - // if the new target is the same, the limited angle is not overwritten - // this->limitedTargetAngle = this->targetAngle; } this->controlMode = ControlMode::Position;