Skip to content
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: add DIR_DISABLE param to disable loading scripts from given directory #15621

Merged
merged 1 commit into from
Oct 28, 2020

Conversation

IamPete1
Copy link
Member

@IamPete1 IamPete1 commented Oct 21, 2020

This allows to disable loading scripts from a directory based on a bit mask param. The use-case being if you have a script loaded in ROMFS that you don't want to run but you do need to run one off the SD card.

Fixes #14644

@IamPete1 IamPete1 force-pushed the scr_dir_disable branch 2 times, most recently from cc2f2af to 0e4489b Compare October 21, 2020 17:32
libraries/AP_Scripting/AP_Scripting.cpp Outdated Show resolved Hide resolved
@tridge tridge merged commit 97b44df into ArduPilot:master Oct 28, 2020
// @Bitmask: 0:ROMFS, 1:APM/scripts
// @RebootRequired: True
// @User: Advanced
AP_GROUPINFO("DIR_DISABLE", 9, AP_Scripting, _dir_disable, 0),
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would have preferred an ENABLE parameter probably..

@IamPete1 IamPete1 deleted the scr_dir_disable branch October 28, 2020 09:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Scripting: "Lua: open directory (@ROMFS/scripts) failed" message
5 participants