From 8c33914cbb486c535066a7e003b36d3a6f9af15f Mon Sep 17 00:00:00 2001 From: Damjan Adamic Date: Thu, 26 Jun 2014 10:30:01 +0200 Subject: [PATCH] Fixes #1364 - Stack alignment to 8 bytes --- radio/src/opentx.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/radio/src/opentx.cpp b/radio/src/opentx.cpp index ffc72c7f1..fe2ca1947 100644 --- a/radio/src/opentx.cpp +++ b/radio/src/opentx.cpp @@ -44,7 +44,8 @@ #define DEBUG_STACK_SIZE 500 OS_TID menusTaskId; -OS_STK menusStack[MENUS_STACK_SIZE]; +//stack must be alligned to 8 bytes otherwise printf for %f does not work! +OS_STK __attribute__((aligned(8))) menusStack[MENUS_STACK_SIZE]; OS_TID mixerTaskId; OS_STK mixerStack[MIXER_STACK_SIZE];