samples: ipm_mailbox: fix thread creation

We have been starting the same thread twice. Introduced when we moved
from k_thread_spawn.

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
This commit is contained in:
Anas Nashif 2017-07-03 10:31:31 -04:00 committed by Anas Nashif
commit 07c0d3d0f0

View file

@ -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);
}