From 6fb2c9799863dd5e7ac177801a0cc9c5bba80af5 Mon Sep 17 00:00:00 2001 From: zhaohe Date: Sun, 12 Nov 2023 17:15:58 +0800 Subject: [PATCH] update --- components/step_motor_ctrl_module/step_motor_ctrl_module.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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 0536903..cb82c82 100644 --- a/components/step_motor_ctrl_module/step_motor_ctrl_module.cpp +++ b/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;