From 54cfd25cebee3196781fac487d327f1800998c3f Mon Sep 17 00:00:00 2001 From: Kilrah Date: Fri, 2 Oct 2020 15:38:33 +0200 Subject: [PATCH] Increase menus stack size for color LCD radios to prevent potential overflows when loading lua scripts --- radio/src/tasks.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/radio/src/tasks.h b/radio/src/tasks.h index 921958363..856aaf038 100644 --- a/radio/src/tasks.h +++ b/radio/src/tasks.h @@ -24,7 +24,11 @@ #include "rtos.h" // stack sizes should be in multiples of 8 for better alignment -#define MENUS_STACK_SIZE 2000 +#if defined (COLORLCD) + #define MENUS_STACK_SIZE 4000 +#else + #define MENUS_STACK_SIZE 2000 +#endif #define MIXER_STACK_SIZE 400 #define AUDIO_STACK_SIZE 400 #define CLI_STACK_SIZE 1000 // only consumed with CLI build option