Skip to content

Commit

Permalink
samples: ipm_mailbox: fix thread creation
Browse files Browse the repository at this point in the history
We have been starting the same thread twice. Introduced when we moved
from k_thread_spawn.

Signed-off-by: Anas Nashif <[email protected]>
  • Loading branch information
nashif authored and Anas Nashif committed Jul 4, 2017
1 parent fc14bfb commit 07c0d3d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion samples/subsys/ipc/ipm_mailbox/ap/src/hello.c
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ void main(void)
main_thread, 0, 0, 0,
K_PRIO_COOP(MAIN_FIBER_PRI), 0, 0);

k_thread_create(&threads[0], &thread_stacks[1][0], STACKSIZE,
k_thread_create(&threads[1], &thread_stacks[1][0], STACKSIZE,
ping_source_thread, 0, 0, 0,
K_PRIO_COOP(PING_FIBER_PRI), 0, 0);
}
Expand Down

0 comments on commit 07c0d3d

Please sign in to comment.