diff --git a/sdk/components/step_motor_ctrl_module/step_motor_ctrl_module.cpp b/sdk/components/step_motor_ctrl_module/step_motor_ctrl_module.cpp index 3231c7f..1ac2061 100644 --- a/sdk/components/step_motor_ctrl_module/step_motor_ctrl_module.cpp +++ b/sdk/components/step_motor_ctrl_module/step_motor_ctrl_module.cpp @@ -609,7 +609,8 @@ int32_t StepMotorCtrlModule::do_step_motor_easy_rotate(int32_t direction) { [this, direction]() { befor_motor_move(); { - rotate(direction, m_cfg.motor_default_velocity); + // rotate(direction, m_cfg.motor_default_velocity); + m_stepM1->rotate(direction >= 0 ? m_cfg.motor_default_velocity : -m_cfg.motor_default_velocity); while (true) { if (m_thread.getExitFlag()) break; diff --git a/usrc/version.h b/usrc/version.h index 4c0a70d..bc805a4 100644 --- a/usrc/version.h +++ b/usrc/version.h @@ -1,2 +1,2 @@ #pragma once -#define PC_VERSION 1008 +#define PC_VERSION 1009