From e301595143999a4b91837bc85eb46fa333f19084 Mon Sep 17 00:00:00 2001 From: Peter Barker Date: Mon, 15 Nov 2021 12:16:28 +1100 Subject: [PATCH] Blimp: ensure ENABLE_SCRIPTING is always defined --- Blimp/Parameters.cpp | 2 +- Blimp/Parameters.h | 2 +- Blimp/system.cpp | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Blimp/Parameters.cpp b/Blimp/Parameters.cpp index f90ca69593..b447f1e8ea 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), -#ifdef ENABLE_SCRIPTING +#if ENABLE_SCRIPTING // @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 1f9d329606..291daf94d8 100644 --- a/Blimp/Parameters.h +++ b/Blimp/Parameters.h @@ -309,7 +309,7 @@ public: AP_Int16 land_alt_low; -#ifdef ENABLE_SCRIPTING +#if ENABLE_SCRIPTING AP_Scripting scripting; #endif // ENABLE_SCRIPTING diff --git a/Blimp/system.cpp b/Blimp/system.cpp index 4839fff78e..c464be790e 100644 --- a/Blimp/system.cpp +++ b/Blimp/system.cpp @@ -83,7 +83,7 @@ void Blimp::init_ardupilot() startup_INS_ground(); -#ifdef ENABLE_SCRIPTING +#if ENABLE_SCRIPTING g2.scripting.init(); #endif // ENABLE_SCRIPTING