From aac949e2277c927204bf815144ea611473a41c19 Mon Sep 17 00:00:00 2001 From: Peter Barker Date: Tue, 14 Nov 2023 16:44:20 +1100 Subject: [PATCH] AP_Notify: add IS31FL3195 to default LED types --- libraries/AP_Notify/AP_Notify.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/libraries/AP_Notify/AP_Notify.cpp b/libraries/AP_Notify/AP_Notify.cpp index c24defb495..c085f31eb8 100644 --- a/libraries/AP_Notify/AP_Notify.cpp +++ b/libraries/AP_Notify/AP_Notify.cpp @@ -72,8 +72,14 @@ AP_Notify *AP_Notify::_singleton; #define ALL_LP5562_I2C 0 #endif +#if AP_NOTIFY_IS31FL3195_ENABLED +#define ALL_IS31FL3195_I2C (Notify_LED_IS31FL3195_I2C_Internal | Notify_LED_IS31FL3195_I2C_External) +#else +#define ALL_IS31FL3195_I2C 0 +#endif + // all I2C_LEDS -#define I2C_LEDS (ALL_TOSHIBALED_I2C | ALL_NCP5623_I2C | ALL_LP5562_I2C) +#define I2C_LEDS (ALL_TOSHIBALED_I2C | ALL_NCP5623_I2C | ALL_LP5562_I2C | ALL_IS31FL3195_I2C) #if AP_NOTIFY_DRONECAN_LED_ENABLED #define DRONECAN_LEDS Notify_LED_DroneCAN