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

Merge pull request !560 from xukunrui/OpenHarmony_1.0.1_release
This commit is contained in:
openharmony_ci 2021-08-20 03:53:35 +00:00 committed by Gitee
commit 3ad07bc40f
1 changed files with 6 additions and 0 deletions

View File

@ -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);