From 961b020bc2561a24e01b894d39c81b91ff5513c4 Mon Sep 17 00:00:00 2001 From: sbb <84119280+helloobaby@users.noreply.github.com> Date: Sat, 17 Dec 2022 12:51:09 +0800 Subject: [PATCH] =?UTF-8?q?documention=E9=87=8C=E7=9A=84=E4=B8=80=E5=A4=84?= =?UTF-8?q?=E5=B0=8F=E9=97=AE=E9=A2=98=20(#6748)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Update thread-comm.md * Update documentation/thread-comm/thread-comm.md Co-authored-by: Man, Jianting (Meco) <920369182@qq.com> --- documentation/thread-comm/thread-comm.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/documentation/thread-comm/thread-comm.md b/documentation/thread-comm/thread-comm.md index 36ca46c2a8..f9293b599f 100644 --- a/documentation/thread-comm/thread-comm.md +++ b/documentation/thread-comm/thread-comm.md @@ -235,7 +235,7 @@ static void thread1_entry(void *parameter) if (rt_mb_recv(&mb, (rt_uint32_t *)&str, RT_WAITING_FOREVER) == RT_EOK) { rt_kprintf("thread1: get a mail from mailbox, the content:%s\n", str); - if (str == mb_str3) + if(!strcmp(str, mb_str3)) break; /* Delay 100ms */ -- GitLab