From abfb05f3edfd0ac519e525dc6c699be6314ec019 Mon Sep 17 00:00:00 2001 From: Thomas Martitz Date: Fri, 10 Dec 2010 13:09:20 +0100 Subject: [PATCH] Base voice thread stack size on DEFAULT_STACK_SIZE, it's otherwise likely to overflow on app targets. --- apps/voice_thread.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/voice_thread.c b/apps/voice_thread.c index 05e2017b0..6683fcc06 100644 --- a/apps/voice_thread.c +++ b/apps/voice_thread.c @@ -59,7 +59,7 @@ /* Voice thread variables */ static unsigned int voice_thread_id = 0; -static long voice_stack[0x7c0/sizeof(long)] IBSS_ATTR_VOICE_STACK; +static long voice_stack[(DEFAULT_STACK_SIZE + 0x3C0)/sizeof(long)] IBSS_ATTR_VOICE_STACK; static const char voice_thread_name[] = "voice"; /* Voice thread synchronization objects */ -- 2.11.4.GIT