mirror of
https://github.com/ArduPilot/ardupilot.git
synced 2026-11-09 16:41:21 +08:00
AP_Scripting: allow AP_SCRIPTING_ENABLED to come from hwdef files
This commit is contained in:
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_Common/AP_Common.h>
|
||||
#include <AP_HAL/HAL.h>
|
||||
#include <AP_Logger/AP_Logger.h>
|
||||
@@ -700,3 +704,5 @@ int lua_get_current_ref()
|
||||
auto *scripting = AP::scripting();
|
||||
return scripting->get_current_ref();
|
||||
}
|
||||
|
||||
#endif // AP_SCRIPTING_ENABLED
|
||||
Reference in new issue
Block a user