Repository: incubator-mynewt-core
Updated Branches:
  refs/heads/develop ded20e114 -> ea988a0cf


timtest: Fix pstack malloc for task 2 should use TASK2_STACK_SIZE


Project: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/repo
Commit: 
http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/commit/3fa905bc
Tree: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/tree/3fa905bc
Diff: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/diff/3fa905bc

Branch: refs/heads/develop
Commit: 3fa905bc40bfd77d708f8c4c682409d26423a743
Parents: 0d659e8
Author: Louie Lu <m...@louie.lu>
Authored: Thu Mar 16 11:51:20 2017 +0800
Committer: Louie Lu <m...@louie.lu>
Committed: Thu Mar 16 11:51:20 2017 +0800

----------------------------------------------------------------------
 apps/timtest/src/main.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/blob/3fa905bc/apps/timtest/src/main.c
----------------------------------------------------------------------
diff --git a/apps/timtest/src/main.c b/apps/timtest/src/main.c
index ff6ace0..29ad716 100755
--- a/apps/timtest/src/main.c
+++ b/apps/timtest/src/main.c
@@ -169,13 +169,13 @@ init_tasks(void)
     res = hal_timer_get_resolution(TASK2_TIMER_NUM);
     assert(res == (1000000000 / TASK2_TIMER_FREQ));
 
-    pstack = malloc(sizeof(os_stack_t)*TASK1_STACK_SIZE);
+    pstack = malloc(sizeof(os_stack_t) * TASK1_STACK_SIZE);
     assert(pstack);
 
     os_task_init(&task1, "task1", task1_handler, NULL,
             TASK1_PRIO, OS_WAIT_FOREVER, pstack, TASK1_STACK_SIZE);
 
-    pstack = malloc(sizeof(os_stack_t)*TASK1_STACK_SIZE);
+    pstack = malloc(sizeof(os_stack_t) * TASK2_STACK_SIZE);
     assert(pstack);
 
     os_task_init(&task2, "task2", task2_handler, NULL,

Reply via email to