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 cb82c82..d148ac3 100644 --- a/components/step_motor_ctrl_module/step_motor_ctrl_module.cpp +++ b/components/step_motor_ctrl_module/step_motor_ctrl_module.cpp @@ -907,7 +907,7 @@ int32_t StepMotorCtrlModule::motor_calculated_pos_by_move_to_zero() { set_last_exec_status(erro); } else { m_com_reg.module_last_cmd_exec_status = erro; - set_last_exec_status(erro, dx + m_param.shift_x); + set_last_exec_status(erro, -dx + m_param.shift_x); m_stepM1->setXACTUAL(0); } },