From d2ca2d2e0e9c4bbc8ea2fc9b13a9ffaceeebaa84 Mon Sep 17 00:00:00 2001 From: Jonathan Challinger Date: Fri, 22 Jan 2016 12:02:08 -0800 Subject: [PATCH] AP_Notify: change OREOLED config to ifdef --- libraries/AP_Notify/AP_Notify.cpp | 4 +++- libraries/AP_Notify/AP_Notify.h | 4 ---- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/libraries/AP_Notify/AP_Notify.cpp b/libraries/AP_Notify/AP_Notify.cpp index be264b895b..366294a0f1 100644 --- a/libraries/AP_Notify/AP_Notify.cpp +++ b/libraries/AP_Notify/AP_Notify.cpp @@ -65,12 +65,14 @@ struct AP_Notify::notify_events_type AP_Notify::events; AP_BoardLED boardled; ToshibaLED_PX4 toshibaled; ToneAlarm_PX4 tonealarm; -#if OREOLED_ENABLED + +#ifdef OREOLED_ENABLED OreoLED_PX4 oreoled; NotifyDevice *AP_Notify::_devices[] = {&boardled, &toshibaled, &tonealarm, &oreoled}; #else NotifyDevice *AP_Notify::_devices[] = {&boardled, &toshibaled, &tonealarm}; #endif + #elif CONFIG_HAL_BOARD == HAL_BOARD_VRBRAIN Buzzer buzzer; #if CONFIG_HAL_BOARD_SUBTYPE == HAL_BOARD_SUBTYPE_VRBRAIN_V45 diff --git a/libraries/AP_Notify/AP_Notify.h b/libraries/AP_Notify/AP_Notify.h index ca4c4a66c4..c03d5d1a5d 100644 --- a/libraries/AP_Notify/AP_Notify.h +++ b/libraries/AP_Notify/AP_Notify.h @@ -22,10 +22,6 @@ #include "NotifyDevice.h" -#ifndef OREOLED_ENABLED - # define OREOLED_ENABLED 0 // set to 1 to enable OreoLEDs -#endif - // Device parameters values #define RGB_LED_OFF 0 #define RGB_LED_LOW 1