diff --git a/documentation/thread-comm/thread-comm.md b/documentation/thread-comm/thread-comm.md index 36ca46c2a8c2a64b007632265b94da863961a1e2..f9293b599f3e425be1397d49b69166a665d7f113 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 */