AP_HAL_ChibiOS: rename Notify buzzertype enumeration

This commit is contained in:
Peter Barker 2024-06-19 14:00:07 +10:00 committed by Peter Barker
parent ae465d7571
commit 6b490a4c47
1 changed files with 1 additions and 1 deletions

View File

@ -227,7 +227,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_NONE) {
if (!(_toneAlarm_types & uint8_t(AP_Notify::BuzzerType::DSHOT)) || get_soft_armed() || hal.rcout->get_dshot_esc_type() == RCOutput::DSHOT_ESC_NONE) {
return;
}