diff --git a/src/components.c b/src/components.c index 3ac7f403eae32d711914ec74d7b8f237b704113d..32409924f42da77b7defd461a7eea9f66f4e682e 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);