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:
Peter Barker 2018-10-11 09:29:04 +11:00 committed by Peter Barker
parent d9e876bfb2
commit a97c9bdd5b

View File

@ -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