diff --git a/libraries/AP_Arming/AP_Arming.cpp b/libraries/AP_Arming/AP_Arming.cpp index b8dee3c99a..903007d40a 100644 --- a/libraries/AP_Arming/AP_Arming.cpp +++ b/libraries/AP_Arming/AP_Arming.cpp @@ -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");