mirror of
https://github.com/ArduPilot/ardupilot.git
synced 2026-10-21 20:53:52 +08:00
AP_Mission: move from ENABLE_SCRIPTING to AP_SCRIPTING_ENABLED
This commit is contained in:
committed by
Peter Barker
parent
64aaf9d93d
commit
ff58afd4a2
@@ -190,7 +190,7 @@ bool AP_Mission::start_command_do_sprayer(const AP_Mission::Mission_Command& cmd
|
||||
|
||||
bool AP_Mission::start_command_do_scripting(const AP_Mission::Mission_Command& cmd)
|
||||
{
|
||||
#if ENABLE_SCRIPTING
|
||||
#if AP_SCRIPTING_ENABLED
|
||||
AP_Scripting *scripting = AP_Scripting::get_singleton();
|
||||
if (scripting == nullptr) {
|
||||
return false;
|
||||
@@ -201,5 +201,5 @@ bool AP_Mission::start_command_do_scripting(const AP_Mission::Mission_Command& c
|
||||
return true;
|
||||
#else
|
||||
return false;
|
||||
#endif // ENABLE_SCRIPTING
|
||||
#endif // AP_SCRIPTING_ENABLED
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user