未验证 提交 961b020b 编写于 作者: S sbb 提交者: GitHub

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

* Update thread-comm.md

* Update documentation/thread-comm/thread-comm.md
Co-authored-by: mysterywolf's avatarMan, Jianting (Meco) <920369182@qq.com>
上级 68ca9f07
......@@ -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 */
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册