mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-09 17:38:32 -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
|
// ChibiOS noise makers
|
||||||
#if CONFIG_HAL_BOARD == HAL_BOARD_CHIBIOS
|
#if CONFIG_HAL_BOARD == HAL_BOARD_CHIBIOS
|
||||||
#ifdef HAL_BUZZER_PIN
|
|
||||||
ADD_BACKEND(new Buzzer());
|
ADD_BACKEND(new Buzzer());
|
||||||
#endif
|
|
||||||
#ifdef HAL_PWM_ALARM
|
#ifdef HAL_PWM_ALARM
|
||||||
ADD_BACKEND(new AP_ToneAlarm());
|
ADD_BACKEND(new AP_ToneAlarm());
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user