Browse Source

update

master
zhaohe 2 years ago
parent
commit
6fb2c97998
  1. 3
      components/step_motor_ctrl_module/step_motor_ctrl_module.cpp

3
components/step_motor_ctrl_module/step_motor_ctrl_module.cpp

@ -33,7 +33,6 @@ void StepMotorCtrlModule::initialize(int moduleid, IStepperMotor* stepM, ZGPIO i
m_cfg = m_factory_config;
}
active_cfg();
#if 0
@ -760,7 +759,7 @@ int32_t StepMotorCtrlModule::module_xxx_reg(int32_t param_id, bool read, int32_t
PROCESS_REG(kreg_stepmotor_ihold, REG_GET(m_param.ihold), REG_SET(m_param.ihold));
PROCESS_REG(kreg_stepmotor_irun, REG_GET(m_param.irun), REG_SET(m_param.irun));
PROCESS_REG(kreg_stepmotor_iholddelay, REG_GET(m_param.iholddelay), REG_SET(m_param.iholddelay));
PROCESS_REG(kreg_module_input_state, module_readio(&val), ACTION_NONE);
default:
return err::kmodule_not_find_config_index;
break;

Loading…
Cancel
Save