diff --git a/components/step_motor_ctrl_module/step_motor_ctrl_module.cpp b/components/step_motor_ctrl_module/step_motor_ctrl_module.cpp index 2ae3bda..641716b 100644 --- a/components/step_motor_ctrl_module/step_motor_ctrl_module.cpp +++ b/components/step_motor_ctrl_module/step_motor_ctrl_module.cpp @@ -591,6 +591,6 @@ int32_t StepMotorCtrlModule::moveTo(int32_t x, int32_t v) { return 0; } int32_t StepMotorCtrlModule::rotate(int32_t direction, int32_t v) { - m_stepM1->moveToEnd(direction, m_cfg.motor_default_velocity); + m_stepM1->moveToEnd(direction, v); return 0; } \ No newline at end of file