documention里的一处小问题 (#6748)

* Update thread-comm.md

* Update documentation/thread-comm/thread-comm.md

Co-authored-by: Man, Jianting (Meco) <920369182@qq.com>
This commit is contained in:
sbb 2022-12-17 12:51:09 +08:00 committed by GitHub
parent 68ca9f07a6
commit 961b020bc2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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 */