|
|
@ -251,7 +251,7 @@ int32_t StepMotorCtrlModule::step_motor_stop(int32_t breakstop) { |
|
|
|
int32_t StepMotorCtrlModule::step_motor_easy_set_current_pos(int32_t pos) { return setnowpos(pos); } |
|
|
|
|
|
|
|
int32_t StepMotorCtrlModule::step_motor_active_cfg() { |
|
|
|
ZLOGI(TAG, "m%d motor_active_cfg", module_id); |
|
|
|
// ZLOGI(TAG, "m%d motor_active_cfg", module_id);
|
|
|
|
m_stepM1->enable(false); |
|
|
|
m_stepM1->setMRES((mres_type_t)m_cfg.stepmotor_mres); |
|
|
|
m_stepM1->setIHOLD_IRUN(m_cfg.stepmotor_ihold, m_cfg.stepmotor_irun, m_cfg.stepmotor_iholddelay); |
|
|
|