AP_Scripting: allow AP_SCRIPTING_ENABLED to come from hwdef files

This commit is contained in:
Peter Barker authored and Peter Barker committed 2023-06-09 16:10:52 +10:00
1 parent 3aaeb0f29c
commit d519ab604e
9 files changed
+59 -1

No files matched your search

@@ -1,3 +1,7 @@
#include "AP_Scripting_config.h"
#if AP_SCRIPTING_ENABLED
#include "AP_Scripting_helpers.h"
#include <AP_Scripting/lua_generated_bindings.h>
@@ -192,3 +196,5 @@ bool Parameter::set_default(float value)
// not a supported type
return false;
}
#endif // AP_SCRIPTING_ENABLED