From 222a26ee20c4f55c165d096ad5d606bcf3a4377e Mon Sep 17 00:00:00 2001 From: Peter Barker Date: Fri, 6 Sep 2024 15:52:44 +1000 Subject: [PATCH] AP_Scripting: tweak conditions for scripting-requires-filesystem AP_FILESYSTEM_READING_ENABLED isn't quite right as we can't read scripts from @SYS. --- libraries/AP_Scripting/AP_Scripting_config.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libraries/AP_Scripting/AP_Scripting_config.h b/libraries/AP_Scripting/AP_Scripting_config.h index 77f9dc8d76..768e751ca7 100644 --- a/libraries/AP_Scripting/AP_Scripting_config.h +++ b/libraries/AP_Scripting/AP_Scripting_config.h @@ -9,7 +9,8 @@ #if AP_SCRIPTING_ENABLED #include - #if !AP_FILESYSTEM_FILE_READING_ENABLED + // enumerate all of the possible places we can read a script from. + #if !AP_FILESYSTEM_POSIX_ENABLED && !AP_FILESYSTEM_FATFS_ENABLED && !AP_FILESYSTEM_ESP32_ENABLED && !AP_FILESYSTEM_ROMFS_ENABLED #error "Scripting requires a filesystem" #endif #endif