AP_Scripting: tweak conditions for scripting-requires-filesystem

AP_FILESYSTEM_READING_ENABLED isn't quite right as we can't read scripts from @SYS.
This commit is contained in:
Peter Barker 2024-09-06 15:52:44 +10:00 committed by Andrew Tridgell
parent 78f0175e20
commit 222a26ee20
1 changed files with 2 additions and 1 deletions

View File

@ -9,7 +9,8 @@
#if AP_SCRIPTING_ENABLED
#include <AP_Filesystem/AP_Filesystem_config.h>
#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