diff --git a/Blimp/Parameters.cpp b/Blimp/Parameters.cpp index b447f1e8ea..dca60110e9 100644 --- a/Blimp/Parameters.cpp +++ b/Blimp/Parameters.cpp @@ -816,7 +816,7 @@ const AP_Param::GroupInfo ParametersG2::var_info[] = { // @User: Standard AP_GROUPINFO("PILOT_SPEED_DN", 24, ParametersG2, pilot_speed_dn, 0), -#if ENABLE_SCRIPTING +#if AP_SCRIPTING_ENABLED // @Group: SCR_ // @Path: ../libraries/AP_Scripting/AP_Scripting.cpp AP_SUBGROUPINFO(scripting, "SCR_", 30, ParametersG2, AP_Scripting), diff --git a/Blimp/Parameters.h b/Blimp/Parameters.h index 291daf94d8..70718b39e5 100644 --- a/Blimp/Parameters.h +++ b/Blimp/Parameters.h @@ -309,9 +309,9 @@ public: AP_Int16 land_alt_low; -#if ENABLE_SCRIPTING +#if AP_SCRIPTING_ENABLED AP_Scripting scripting; -#endif // ENABLE_SCRIPTING +#endif // AP_SCRIPTING_ENABLED AP_Float tuning_min; AP_Float tuning_max; diff --git a/Blimp/system.cpp b/Blimp/system.cpp index c464be790e..cec5103bb5 100644 --- a/Blimp/system.cpp +++ b/Blimp/system.cpp @@ -83,9 +83,9 @@ void Blimp::init_ardupilot() startup_INS_ground(); -#if ENABLE_SCRIPTING +#if AP_SCRIPTING_ENABLED g2.scripting.init(); -#endif // ENABLE_SCRIPTING +#endif // AP_SCRIPTING_ENABLED // we don't want writes to the serial port to cause us to pause // mid-flight, so set the serial ports non-blocking once we are