From 689f316100f389c7c4ee6256c0a956fd25d65d65 Mon Sep 17 00:00:00 2001 From: Bluebear233 <417350690@qq.com> Date: Mon, 2 Jan 2017 19:52:00 +0800 Subject: [PATCH] Update components.c MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 修正断言错误 --- src/components.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components.c b/src/components.c index 3ac7f403ea..32409924f4 100644 --- a/src/components.c +++ b/src/components.c @@ -207,7 +207,7 @@ void rt_application_init(void) tid = &main_thread; result = rt_thread_init(tid, "main", main_thread_entry, RT_NULL, main_stack, sizeof(main_stack), RT_THREAD_PRIORITY_MAX / 3, 20); - RT_ASSERT(result != RT_ERROR); + RT_ASSERT(result == RT_EOK); #endif rt_thread_startup(tid); -- GitLab