From a13de1e62b22f9e87d0dc862e98f6aab7d94842c Mon Sep 17 00:00:00 2001 From: Cliff Geerdes Date: Wed, 20 Jul 2016 02:56:10 -0400 Subject: [PATCH] LP-340 Add 100 bytes of stack because Nano needs 156 more than Sparky2 --- flight/modules/AutoTune/autotune.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/flight/modules/AutoTune/autotune.c b/flight/modules/AutoTune/autotune.c index cd2b6dd7a..df93d4a81 100644 --- a/flight/modules/AutoTune/autotune.c +++ b/flight/modules/AutoTune/autotune.c @@ -68,7 +68,8 @@ // Private constants #undef STACK_SIZE_BYTES // Pull Request version tested on Sparky2. 292 bytes of stack left when configured with 1340 -#define STACK_SIZE_BYTES 1240 +// Beware that Nano needs 156 bytes more stack than Sparky2 +#define STACK_SIZE_BYTES 1340 #define TASK_PRIORITY (tskIDLE_PRIORITY + 1) #define AF_NUMX 13