From 7b7aa23519aad7e0d414f12db71ab2413f568cd1 Mon Sep 17 00:00:00 2001 From: zhaohe Date: Fri, 28 Jun 2024 09:28:06 +0800 Subject: [PATCH] update --- components/step_motor_ctrl_module/step_motor_ctrl_module.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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