diff --git a/ArduSub/Parameters.cpp b/ArduSub/Parameters.cpp index d1bed58b2f..63e08de810 100644 --- a/ArduSub/Parameters.cpp +++ b/ArduSub/Parameters.cpp @@ -651,7 +651,7 @@ const AP_Param::GroupInfo ParametersG2::var_info[] = { // @Path: ../libraries/RC_Channel/RC_Channels_VarInfo.h AP_SUBGROUPINFO(rc_channels, "RC", 17, ParametersG2, RC_Channels), -#ifdef ENABLE_SCRIPTING +#if ENABLE_SCRIPTING // @Group: SCR_ // @Path: ../libraries/AP_Scripting/AP_Scripting.cpp AP_SUBGROUPINFO(scripting, "SCR_", 18, ParametersG2, AP_Scripting), diff --git a/ArduSub/Parameters.h b/ArduSub/Parameters.h index 13a99de694..c3c45605dc 100644 --- a/ArduSub/Parameters.h +++ b/ArduSub/Parameters.h @@ -4,7 +4,7 @@ #include -#ifdef ENABLE_SCRIPTING +#if ENABLE_SCRIPTING #include #endif @@ -335,7 +335,7 @@ public: // control over servo output ranges SRV_Channels servo_channels; -#ifdef ENABLE_SCRIPTING +#if ENABLE_SCRIPTING AP_Scripting scripting; #endif // ENABLE_SCRIPTING diff --git a/ArduSub/Sub.h b/ArduSub/Sub.h index 5be239df7a..b0af035214 100644 --- a/ArduSub/Sub.h +++ b/ArduSub/Sub.h @@ -106,7 +106,7 @@ #include // Photo or video camera #endif -#ifdef ENABLE_SCRIPTING +#if ENABLE_SCRIPTING #include #endif diff --git a/ArduSub/system.cpp b/ArduSub/system.cpp index 2aa1336af6..e6a85610fa 100644 --- a/ArduSub/system.cpp +++ b/ArduSub/system.cpp @@ -151,7 +151,7 @@ void Sub::init_ardupilot() startup_INS_ground(); -#ifdef ENABLE_SCRIPTING +#if ENABLE_SCRIPTING g2.scripting.init(); #endif // ENABLE_SCRIPTING