From e024f9fc8c2ea55d031e0eb2870a124ebf632205 Mon Sep 17 00:00:00 2001 From: Andy Piper Date: Sun, 8 Oct 2023 21:14:52 +0100 Subject: [PATCH] AP_Notify: ensure dshot LEDs work with EDT ESCs --- libraries/AP_Notify/DShotLED.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libraries/AP_Notify/DShotLED.cpp b/libraries/AP_Notify/DShotLED.cpp index 798905a990..6b895b88be 100644 --- a/libraries/AP_Notify/DShotLED.cpp +++ b/libraries/AP_Notify/DShotLED.cpp @@ -23,7 +23,8 @@ extern const AP_HAL::HAL& hal; bool DShotLED::hw_set_rgb(uint8_t red, uint8_t green, uint8_t blue) { // don't play the motor LEDs while flying - if (hal.util->get_soft_armed() || hal.rcout->get_dshot_esc_type() != AP_HAL::RCOutput::DSHOT_ESC_BLHELI) { + if (hal.util->get_soft_armed() || (hal.rcout->get_dshot_esc_type() != AP_HAL::RCOutput::DSHOT_ESC_BLHELI + && hal.rcout->get_dshot_esc_type() != AP_HAL::RCOutput::DSHOT_ESC_BLHELI_EDT)) { return false; }