|
|
@ -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; |
|
|
|