Browse Source

AP_Notify: ensure ENABLE_SCRIPTING is always defined

gps-1.3.1
Peter Barker 3 years ago committed by Peter Barker
parent
commit
4eaba21e15
  1. 2
      libraries/AP_Notify/AP_Notify.cpp
  2. 2
      libraries/AP_Notify/ScriptingLED.cpp
  3. 2
      libraries/AP_Notify/ScriptingLED.h

2
libraries/AP_Notify/AP_Notify.cpp

@ -328,7 +328,7 @@ void AP_Notify::add_backends(void) @@ -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;

2
libraries/AP_Notify/ScriptingLED.cpp

@ -16,7 +16,7 @@ @@ -16,7 +16,7 @@
#include "AP_Notify/AP_Notify.h"
#include "ScriptingLED.h"
#ifdef ENABLE_SCRIPTING
#if ENABLE_SCRIPTING
ScriptingLED *ScriptingLED::_singleton;

2
libraries/AP_Notify/ScriptingLED.h

@ -17,7 +17,7 @@ @@ -17,7 +17,7 @@
#include "RGBLed.h"
#include <AP_Common/AP_Common.h>
#ifdef ENABLE_SCRIPTING
#if ENABLE_SCRIPTING
class ScriptingLED: public RGBLed {
public:

Loading…
Cancel
Save