AP_Notify: change OREOLED config to ifdef

This commit is contained in:
Jonathan Challinger
2016-04-21 10:04:37 +10:00
committed by Andrew Tridgell
parent 06ccf88cc9
commit d2ca2d2e0e
2 changed files with 3 additions and 5 deletions
+3 -1
View File
@@ -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