diff --git a/components/step_motor_45/step_motor_45.cpp b/components/step_motor_45/step_motor_45.cpp index f678283..772014c 100644 --- a/components/step_motor_45/step_motor_45.cpp +++ b/components/step_motor_45/step_motor_45.cpp @@ -61,6 +61,7 @@ void StepMotor45::rotate(int direction, int speed) { CriticalContext cc; if (direction == 0) { stop(); + return; } if (direction > 0) {