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 5688ce1..280af17 100644 --- a/components/step_motor_ctrl_module/step_motor_ctrl_module.cpp +++ b/components/step_motor_ctrl_module/step_motor_ctrl_module.cpp @@ -758,6 +758,9 @@ int32_t StepMotorCtrlModule::motor_move_to(int32_t tox, int32_t motor_velocity, if (acc == 0) { acc = m_param.acc; } + if(motor_velocity == 0){ + motor_velocity = m_param.maxspeed; + } m_thread.start( [this, tox, motor_velocity, acc]() {