Skip to content

Commit

Permalink
AP_Scripting: tweak conditions for scripting-requires-filesystem
Browse files Browse the repository at this point in the history
AP_FILESYSTEM_READING_ENABLED isn't quite right as we can't read scripts from @sys.
  • Loading branch information
peterbarker authored and tridge committed Sep 10, 2024
1 parent 78f0175 commit 222a26e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion libraries/AP_Scripting/AP_Scripting_config.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 222a26e

Please sign in to comment.