From 12f348398ad92dcfbb66cbfe0591aeaa2c268a8e Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Wed, 27 Apr 2022 13:50:53 +1000 Subject: [PATCH] Revert "AP_Notify: fixed DroneCAN LEDs on AP_Periph" This reverts commit 18589696972466743697fd60bdfcc68c4a799ab6. This was an incorrect change that actually broke LEDs on CAN GPS modules --- libraries/AP_Notify/AP_Notify.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/libraries/AP_Notify/AP_Notify.cpp b/libraries/AP_Notify/AP_Notify.cpp index b9559a1df5..1d4a80c984 100644 --- a/libraries/AP_Notify/AP_Notify.cpp +++ b/libraries/AP_Notify/AP_Notify.cpp @@ -112,7 +112,11 @@ AP_Notify *AP_Notify::_singleton; #endif #ifndef NOTIFY_LED_OVERRIDE_DEFAULT -#define NOTIFY_LED_OVERRIDE_DEFAULT 0 // rgb_source_t::standard +#ifdef HAL_BUILD_AP_PERIPH + #define NOTIFY_LED_OVERRIDE_DEFAULT 1 // rgb_source_t::mavlink +#else + #define NOTIFY_LED_OVERRIDE_DEFAULT 0 // rgb_source_t::standard +#endif #endif #ifndef NOTIFY_LED_LEN_DEFAULT