Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
AP_Scripting: no warning if no ./scripts and no real filesystem
it is possible to build for boards without storage (so no Posix, no Fatafs), but still have scripts in ROMFS. In this case we will use the backend AP_Filesystem_backend base class when doing file operations. This will alway fail to open directories, so when we try to load scripts from SCRIPTS_DIRECTORY it will always fail. This leads to a warning being emitted: Lua: State memory usage: 2796 + 5227 AP: Lua: open directory (./scripts) failed AP: hello, world Time has wrapped Which isn't great. Detect we are working on this filesystem and don't warn.
- Loading branch information