From 67177aed421e111807a798f456f7ab36c0f8ab1c Mon Sep 17 00:00:00 2001 From: Andre Bernet Date: Thu, 26 Jun 2014 13:13:59 +0200 Subject: [PATCH] Fix VC compilation for #1364 fix --- radio/src/opentx.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/radio/src/opentx.cpp b/radio/src/opentx.cpp index fe2ca1947..a41e3139f 100644 --- a/radio/src/opentx.cpp +++ b/radio/src/opentx.cpp @@ -44,8 +44,13 @@ #define DEBUG_STACK_SIZE 500 OS_TID menusTaskId; -//stack must be alligned to 8 bytes otherwise printf for %f does not work! +#if !defined(SIMU) +// stack must be alligned to 8 bytes otherwise printf for %f does not work! OS_STK __attribute__((aligned(8))) menusStack[MENUS_STACK_SIZE]; +#else +// but VC++ doesn't like the aligned keyword, so keep it as is on simu (which works) +OS_STK menusStack[MENUS_STACK_SIZE]; +#endif OS_TID mixerTaskId; OS_STK mixerStack[MIXER_STACK_SIZE];