소스 검색

Update components.c

修正断言错误
Bluebear233 8 년 전
부모
커밋
689f316100
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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_ERROR);
+    RT_ASSERT(result == RT_EOK);
 #endif
 
     rt_thread_startup(tid);