AP_HAL_ChibiOS: allow dshot beeps to play on all dshot ESC types

This commit is contained in:
Andy Piper
2024-01-23 11:58:55 +11:00
committed by Andrew Tridgell
parent b35431beb5
commit 6c634ebc00
+1 -1
View File
@@ -226,7 +226,7 @@ void Util::toneAlarm_set_buzzer_tone(float frequency, float volume, uint32_t dur
#endif // HAL_USE_PWM
#if HAL_DSHOT_ALARM_ENABLED
// don't play the motors while flying
if (!(_toneAlarm_types & AP_Notify::Notify_Buzz_DShot) || get_soft_armed() || hal.rcout->get_dshot_esc_type() != RCOutput::DSHOT_ESC_BLHELI) {
if (!(_toneAlarm_types & AP_Notify::Notify_Buzz_DShot) || get_soft_armed() || hal.rcout->get_dshot_esc_type() == RCOutput::DSHOT_ESC_NONE) {
return;
}