Skip to content

Commit

Permalink
AP_Notify: change OREOLED config to ifdef
Browse files Browse the repository at this point in the history
  • Loading branch information
jschall authored and tridge committed Apr 21, 2016
1 parent 06ccf88 commit d2ca2d2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
4 changes: 3 additions & 1 deletion libraries/AP_Notify/AP_Notify.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 0 additions & 4 deletions libraries/AP_Notify/AP_Notify.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d2ca2d2

Please sign in to comment.