提交 1e8d5baf 编写于 作者: X xukunrui

解决调用system_console_deinit接口进行卸载console调试口,系统挂死

Signed-off-by: Nxukunrui <xukunrui1@huawei.com>
上级 b744cfa1
......@@ -157,6 +157,12 @@ INT32 OsShellDeinit(INT32 consoleId)
return -1;
}
#if defined(LOSCFG_PLATFORM_ROOTFS)
if (consoleId == CONSOLE_SERIAL){
return 0;
}
#endif
(VOID)LOS_TaskDelete(shellCB->shellEntryHandle);
(VOID)LOS_EventWrite(&shellCB->shellEvent, CONSOLE_SHELL_KEY_EVENT);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册