AP_Arming: move from ENABLE_SCRIPTING to AP_SCRIPTING_ENABLED

This commit is contained in:
Peter Barker 2021-11-15 16:08:26 +11:00 committed by Peter Barker
parent 8e15bf09a6
commit a729ba165e

View File

@ -887,7 +887,7 @@ bool AP_Arming::system_checks(bool report)
return false;
}
#endif
#if ENABLE_SCRIPTING
#if AP_SCRIPTING_ENABLED
const AP_Scripting *scripting = AP_Scripting::get_singleton();
if ((scripting != nullptr) && scripting->enabled() && scripting->init_failed()) {
check_failed(ARMING_CHECK_SYSTEM, report, "Scripting out of memory");