From 10f7a363ed33aeea57849951c31db2e0e50cd62a Mon Sep 17 00:00:00 2001 From: Tom Pittenger Date: Tue, 7 Mar 2023 06:45:02 -0800 Subject: [PATCH] AP_Scripting: bump up SCR HEAP SIZE for large RAM devices --- libraries/AP_Scripting/AP_Scripting.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/libraries/AP_Scripting/AP_Scripting.cpp b/libraries/AP_Scripting/AP_Scripting.cpp index b715c324aa..51484e8153 100644 --- a/libraries/AP_Scripting/AP_Scripting.cpp +++ b/libraries/AP_Scripting/AP_Scripting.cpp @@ -33,7 +33,9 @@ #endif // !defined(SCRIPTING_STACK_MAX_SIZE) #if !defined(SCRIPTING_HEAP_SIZE) - #if CONFIG_HAL_BOARD == HAL_BOARD_SITL || CONFIG_HAL_BOARD == HAL_BOARD_LINUX || HAL_MEM_CLASS >= HAL_MEM_CLASS_500 + #if CONFIG_HAL_BOARD == HAL_BOARD_SITL || CONFIG_HAL_BOARD == HAL_BOARD_LINUX || HAL_MEM_CLASS >= HAL_MEM_CLASS_1000 + #define SCRIPTING_HEAP_SIZE (200 * 1024) + #elif HAL_MEM_CLASS >= HAL_MEM_CLASS_500 #define SCRIPTING_HEAP_SIZE (100 * 1024) #else #define SCRIPTING_HEAP_SIZE (43 * 1024)