From f712b202deaa456043b244766fdb54e425b043bc Mon Sep 17 00:00:00 2001 From: Iampete1 Date: Wed, 4 Oct 2023 17:29:05 +0100 Subject: [PATCH] AP_Scripting: require a file system --- libraries/AP_Scripting/AP_Scripting_config.h | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/libraries/AP_Scripting/AP_Scripting_config.h b/libraries/AP_Scripting/AP_Scripting_config.h index 6eb4a7b59d..a58d83062b 100644 --- a/libraries/AP_Scripting/AP_Scripting_config.h +++ b/libraries/AP_Scripting/AP_Scripting_config.h @@ -3,5 +3,12 @@ #include #ifndef AP_SCRIPTING_ENABLED -#define AP_SCRIPTING_ENABLED BOARD_FLASH_SIZE > 1024 +#define AP_SCRIPTING_ENABLED (BOARD_FLASH_SIZE > 1024) +#endif + +#if AP_SCRIPTING_ENABLED + #include + #if !AP_FILESYSTEM_FILE_READING_ENABLED + #error "Scripting requires a filesystem" + #endif #endif