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