-
Notifications
You must be signed in to change notification settings - Fork 17.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
AP_Scripting: only open the scripts directory on filesystems that support it #27404
Conversation
If we make this change I think we also need to narrow the scope of the error here:
It should be |
I'm not sure HAL_HAVE_AP_ROMFS_EMBEDDED_LUA needs to exist. We already have:
So I think we could actually leave this and simply change HAL_HAVE_AP_ROMFS_EMBEDDED_LUA to AP_FILESYSTEM_ROMFS_ENABLED |
Someone may not want to embed LUA scripts but still want to have ROMFS (e.g. defaults.parm files) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You don't actually state what the bug is here.
I'm guessing that it's the fact it emits a warning, "Lua: open directory (%s) failed" on boards that can't opendir? Which boards/filesystems are they, BTW?
Yes that's it - MambaH743v4 was the one I was testing |
I've created this alternative PR which takes a different approach: #28012 |
4f97e5a
to
bbe4289
Compare
@andyp1per we have merged the alternative from @peterbarker - it's less likely to have unintended side effects |
No description provided.