summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBernard Xiong <[email protected]>2017-01-02 20:41:57 +0800
committerGitHub <[email protected]>2017-01-02 20:41:57 +0800
commit370250afbec434f2c75514ea80b326c96d0858dd (patch)
tree287838c3cec4eebf34f303e9ebba055a0ae990f9
parent724c66b5463d88a9d351dc69ae3807c7010d9c63 (diff)
parent689f316100f389c7c4ee6256c0a956fd25d65d65 (diff)
Merge pull request #692 from Bluebear233/Bluebear233-fix
[Kernel] Fix the assertion issue in components.c
-rw-r--r--src/components.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/components.c b/src/components.c
index 08979a027c..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_EOK);
+ RT_ASSERT(result == RT_EOK);
#endif
rt_thread_startup(tid);