From 8d7686179c22c7ff727c2c73b100e79ba1cc6c9b Mon Sep 17 00:00:00 2001 From: Bluebear233 <417350690@qq.com> Date: Sun, 1 Jan 2017 20:23:27 +0800 Subject: [PATCH] Update components.c --- src/components.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components.c b/src/components.c index cbc1e3b9a..08979a027 100644 --- a/src/components.c +++ b/src/components.c @@ -206,7 +206,7 @@ void rt_application_init(void) tid = &main_thread; result = rt_thread_init(tid, "main", main_thread_entry, RT_NULL, - main_stack, 2048, RT_THREAD_PRIORITY_MAX / 3, 20); + main_stack, sizeof(main_stack), RT_THREAD_PRIORITY_MAX / 3, 20); RT_ASSERT(result != RT_EOK); #endif