From 4eaba21e15b7e42a1b92d0482a955849e61d73f3 Mon Sep 17 00:00:00 2001 From: Peter Barker Date: Mon, 15 Nov 2021 12:16:26 +1100 Subject: [PATCH] AP_Notify: ensure ENABLE_SCRIPTING is always defined --- libraries/AP_Notify/AP_Notify.cpp | 2 +- libraries/AP_Notify/ScriptingLED.cpp | 2 +- libraries/AP_Notify/ScriptingLED.h | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/libraries/AP_Notify/AP_Notify.cpp b/libraries/AP_Notify/AP_Notify.cpp index b15e5c936b9..6e6b02d488d 100644 --- a/libraries/AP_Notify/AP_Notify.cpp +++ b/libraries/AP_Notify/AP_Notify.cpp @@ -328,7 +328,7 @@ void AP_Notify::add_backends(void) break; case Notify_LED_Scripting: -#ifdef ENABLE_SCRIPTING +#if ENABLE_SCRIPTING ADD_BACKEND(new ScriptingLED()); #endif break; diff --git a/libraries/AP_Notify/ScriptingLED.cpp b/libraries/AP_Notify/ScriptingLED.cpp index 6533990bff5..e4f25c1dad7 100644 --- a/libraries/AP_Notify/ScriptingLED.cpp +++ b/libraries/AP_Notify/ScriptingLED.cpp @@ -16,7 +16,7 @@ #include "AP_Notify/AP_Notify.h" #include "ScriptingLED.h" -#ifdef ENABLE_SCRIPTING +#if ENABLE_SCRIPTING ScriptingLED *ScriptingLED::_singleton; diff --git a/libraries/AP_Notify/ScriptingLED.h b/libraries/AP_Notify/ScriptingLED.h index de52773d339..0a98d2cc6af 100644 --- a/libraries/AP_Notify/ScriptingLED.h +++ b/libraries/AP_Notify/ScriptingLED.h @@ -17,7 +17,7 @@ #include "RGBLed.h" #include -#ifdef ENABLE_SCRIPTING +#if ENABLE_SCRIPTING class ScriptingLED: public RGBLed { public: