summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBluebear233 <[email protected]>2017-01-01 20:23:27 +0800
committerGitHub <[email protected]>2017-01-01 20:23:27 +0800
commit8d7686179c22c7ff727c2c73b100e79ba1cc6c9b (patch)
tree33529aac23d1cb9828ecd941ca9102f4a39f54a4 /src
parent6c1d60f98720041b4001af729d810326f0ba8b20 (diff)
Update components.c
Diffstat (limited to 'src')
-rw-r--r--src/components.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/components.c b/src/components.c
index cbc1e3b9a0..08979a027c 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