Explorar o código

Merge pull request #692 from Bluebear233/Bluebear233-fix

[Kernel] Fix the assertion issue in components.c
Bernard Xiong %!s(int64=8) %!d(string=hai) anos
pai
achega
370250afbe
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/components.c

+ 1 - 1
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);