diff --git a/libraries/AP_Notify/AP_Notify.cpp b/libraries/AP_Notify/AP_Notify.cpp index 240bb66034..5e54274090 100644 --- a/libraries/AP_Notify/AP_Notify.cpp +++ b/libraries/AP_Notify/AP_Notify.cpp @@ -113,17 +113,12 @@ AP_Notify *AP_Notify::_singleton; #elif CONFIG_HAL_BOARD_SUBTYPE == HAL_BOARD_SUBTYPE_LINUX_RST_ZYNQ #define DEFAULT_NTF_LED_TYPES (Notify_LED_ToshibaLED_I2C_External) + #endif // board subtype +#endif // CONFIG_HAL_BOARD == HAL_BOARD_LINUX +#endif // defined (DEFAULT_NTF_LED_TYPES) - #else // other linux +#ifndef DEFAULT_NTF_LED_TYPES #define DEFAULT_NTF_LED_TYPES (Notify_LED_Board | I2C_LEDS) - #endif - -// All other builds -#else - #define DEFAULT_NTF_LED_TYPES (Notify_LED_Board | I2C_LEDS) - -#endif // board selection - #endif // DEFAULT_NTF_LED_TYPES #ifndef BUZZER_ENABLE_DEFAULT