From 44920856d3aa4becb2dcf6c6742375382b960f1c Mon Sep 17 00:00:00 2001 From: Peter Barker Date: Mon, 15 Nov 2021 12:16:27 +1100 Subject: [PATCH] AntennaTracker: ensure ENABLE_SCRIPTING is always defined --- AntennaTracker/Parameters.cpp | 2 +- AntennaTracker/Tracker.h | 4 ++-- AntennaTracker/system.cpp | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/AntennaTracker/Parameters.cpp b/AntennaTracker/Parameters.cpp index c33f55682d..c4bb65ffc2 100644 --- a/AntennaTracker/Parameters.cpp +++ b/AntennaTracker/Parameters.cpp @@ -456,7 +456,7 @@ const AP_Param::Info Tracker::var_info[] = { GGROUP(pidYaw2Srv, "YAW2SRV_", AC_PID), -#ifdef ENABLE_SCRIPTING +#if ENABLE_SCRIPTING // @Group: SCR_ // @Path: ../libraries/AP_Scripting/AP_Scripting.cpp GOBJECT(scripting, "SCR_", AP_Scripting), diff --git a/AntennaTracker/Tracker.h b/AntennaTracker/Tracker.h index 3b3b43c98c..ea21fdace0 100644 --- a/AntennaTracker/Tracker.h +++ b/AntennaTracker/Tracker.h @@ -54,7 +54,7 @@ #include "AP_Arming.h" -#ifdef ENABLE_SCRIPTING +#if ENABLE_SCRIPTING #include #endif @@ -116,7 +116,7 @@ private: ModeServoTest mode_servotest; ModeStop mode_stop; -#ifdef ENABLE_SCRIPTING +#if ENABLE_SCRIPTING AP_Scripting scripting; #endif diff --git a/AntennaTracker/system.cpp b/AntennaTracker/system.cpp index f2fec9fc1d..72dd8a982a 100644 --- a/AntennaTracker/system.cpp +++ b/AntennaTracker/system.cpp @@ -32,7 +32,7 @@ void Tracker::init_ardupilot() log_init(); #endif -#ifdef ENABLE_SCRIPTING +#if ENABLE_SCRIPTING scripting.init(); #endif // ENABLE_SCRIPTING