From 54c0621263005960f01981565c07af64342173dc Mon Sep 17 00:00:00 2001 From: miaogs <1247508314@qq.com> Date: Tue, 23 Oct 2018 09:45:52 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E8=BE=93=E5=85=A5cli?= =?UTF-8?q?=E5=91=BD=E4=BB=A4=E6=97=A0=E5=93=8D=E5=BA=94=E7=9A=84=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .vscode/settings.json | 3 +++ platform/linux/mx_stdio.c | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) create mode 100644 .vscode/settings.json diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 0000000..bb55415 --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,3 @@ +{ + "aliosStudio.sdkPath": "/Users/miaogs/.aos/AliOS-Things" +} \ No newline at end of file diff --git a/platform/linux/mx_stdio.c b/platform/linux/mx_stdio.c index 1256c83..ec5866b 100644 --- a/platform/linux/mx_stdio.c +++ b/platform/linux/mx_stdio.c @@ -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);