mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-08 17:08:28 -04:00
AP_Notify: enable buzzer under ChibiOS regardless of HAL_BUZZER_PIN
We have a parameter which can supply a pin number
This commit is contained in:
parent
d9e876bfb2
commit
a97c9bdd5b
@ -263,9 +263,7 @@ void AP_Notify::add_backends(void)
|
||||
|
||||
// ChibiOS noise makers
|
||||
#if CONFIG_HAL_BOARD == HAL_BOARD_CHIBIOS
|
||||
#ifdef HAL_BUZZER_PIN
|
||||
ADD_BACKEND(new Buzzer());
|
||||
#endif
|
||||
#ifdef HAL_PWM_ALARM
|
||||
ADD_BACKEND(new AP_ToneAlarm());
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user