mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-03 06:28:27 -04:00
AP_HAL_ChibiOS: rename Notify buzzertype enumeration
This commit is contained in:
parent
ae465d7571
commit
6b490a4c47
@ -227,7 +227,7 @@ void Util::toneAlarm_set_buzzer_tone(float frequency, float volume, uint32_t dur
|
|||||||
#endif // HAL_USE_PWM
|
#endif // HAL_USE_PWM
|
||||||
#if HAL_DSHOT_ALARM_ENABLED
|
#if HAL_DSHOT_ALARM_ENABLED
|
||||||
// don't play the motors while flying
|
// 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;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user