Skip to content

Commit

Permalink
修复输入cli命令无响应的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
miaogs committed Oct 23, 2018
1 parent 9d1922d commit 54c0621
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"aliosStudio.sdkPath": "/Users/miaogs/.aos/AliOS-Things"
}
2 changes: 1 addition & 1 deletion platform/linux/mx_stdio.c
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ void mx_hal_stdio_init(void)
#ifdef MX_CLI_ENABLE
pthread_t ntid;

pthread_mutex_lock(&stdio_mtx);
pthread_mutex_init(&stdio_mtx, NULL);

err = pthread_create(&ntid, NULL, cli_recv_task, NULL);
require_noerr(err, exit);
Expand Down

0 comments on commit 54c0621

Please sign in to comment.