解决调用system_console_deinit接口进行卸载console调试口,系统挂死
Signed-off-by: xukunrui <xukunrui1@huawei.com>
This commit is contained in:
parent
b744cfa164
commit
1e8d5baf8c
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in New Issue