From 8bfa70e3e77786926515618b3331143c2148c771 Mon Sep 17 00:00:00 2001 From: wangbo Date: Fri, 22 Sep 2023 09:21:58 +0000 Subject: [PATCH] =?UTF-8?q?FIX|=20=E6=B6=88=E9=99=A4=E7=BC=96=E8=AF=91?= =?UTF-8?q?=E8=AD=A6=E5=91=8A;?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/lib/a_process/pd_cpld.c | 2 +- app/lib/a_process/pd_csg.c | 2 +- app/lib/a_process/pd_main.c | 2 +- app/lib/a_process/process.c | 2 ++ app/lib/m_management/cmd.c | 5 +++-- 5 files changed, 8 insertions(+), 5 deletions(-) diff --git a/app/lib/a_process/pd_cpld.c b/app/lib/a_process/pd_cpld.c index f72dd0d..f918dfa 100755 --- a/app/lib/a_process/pd_cpld.c +++ b/app/lib/a_process/pd_cpld.c @@ -201,9 +201,9 @@ int32_t _cpld_half_word_read(uint16_t *data) /* CPLD 模块初始化代码. */ int32_t cpld_handle_init(void) { +#if 0 uint16_t temp = 0; -#if 0 /* 申请信号量, 防止多个线程同时操作 fifo. */ if (pthread_mutex_init(&cpld_mutex, NULL) != 0) { diff --git a/app/lib/a_process/pd_csg.c b/app/lib/a_process/pd_csg.c index 75daaf0..b6f569e 100755 --- a/app/lib/a_process/pd_csg.c +++ b/app/lib/a_process/pd_csg.c @@ -1134,9 +1134,9 @@ int32_t _csg_handle_init_common(void) /* 后台通讯模块初始化. */ int32_t csg_handle_init(void) { +#if 0 int32_t rv = 0; -#if 0 /* 初始化模块. */ LD_E_RETURN(DBG_M_PD_CSG_ERR, _csg_handle_init_common()); #endif diff --git a/app/lib/a_process/pd_main.c b/app/lib/a_process/pd_main.c index f58bdb4..f1ac49d 100755 --- a/app/lib/a_process/pd_main.c +++ b/app/lib/a_process/pd_main.c @@ -484,11 +484,11 @@ int32_t _pd_port_str_to_unit_port(const char *port_str, uint8_t *unit, uint8_t * return: */ int32_t pd_main(void) { +#if 0 uint8_t i = 0; uint8_t j = 0; int32_t rv = 0; -#if 0 /* 初始化基本参数. */ for(i = 0; i < PD_DAU_SUM; i++) { diff --git a/app/lib/a_process/process.c b/app/lib/a_process/process.c index e141c47..56e277f 100755 --- a/app/lib/a_process/process.c +++ b/app/lib/a_process/process.c @@ -196,11 +196,13 @@ int32_t main(int32_t argc, char **argv) /* 启动命令行 */ vtysh_shell_init(); +#if 0 /* 初始化完成 */ version_hex = version_str_to_int(); is_system_init = TRUE; start_time = time(NULL); //GPIO_ERR1_LED(1); +#endif /* 启动ssh命令行 */ vtycmd_init(); diff --git a/app/lib/m_management/cmd.c b/app/lib/m_management/cmd.c index 4745c3d..0762611 100755 --- a/app/lib/m_management/cmd.c +++ b/app/lib/m_management/cmd.c @@ -2592,6 +2592,7 @@ char *_vtysh_gets(void) free(line_read); line_read = NULL; } + //printf("QQ:node=%d type=%d\n", vtysh->node, vtysh->type); /* 输入密码时不要回显 */ if (PASSWORD_NODE == vtysh->node) @@ -2604,7 +2605,7 @@ char *_vtysh_gets(void) /* 获取一行命令. */ //line_read = readline(vtysh_prompt()); - line_read = readline(NULL); + line_read = readline(NULL); /* 打开回显 */ if (PASSWORD_NODE == vtysh->node) @@ -2889,7 +2890,7 @@ void vtysh_init(void) { vtysh_readline_init(); vty_init(); - vtysh_device_init(); + //vtysh_device_init(); /* Make vty structure. */ vtysh = vty_create();