AP_Scripting: bump up SCR HEAP SIZE for large RAM devices

This commit is contained in:
Tom Pittenger 2023-03-07 06:45:02 -08:00 committed by Tom Pittenger
parent 63c0b276c3
commit 10f7a363ed

View File

@ -33,7 +33,9 @@
#endif // !defined(SCRIPTING_STACK_MAX_SIZE) #endif // !defined(SCRIPTING_STACK_MAX_SIZE)
#if !defined(SCRIPTING_HEAP_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) #define SCRIPTING_HEAP_SIZE (100 * 1024)
#else #else
#define SCRIPTING_HEAP_SIZE (43 * 1024) #define SCRIPTING_HEAP_SIZE (43 * 1024)