Browse Source

AP_Notify: enable buzzer under ChibiOS regardless of HAL_BUZZER_PIN

We have a parameter which can supply a pin number
mission-4.1.18
Peter Barker 6 years ago committed by Peter Barker
parent
commit
a97c9bdd5b
  1. 2
      libraries/AP_Notify/AP_Notify.cpp

2
libraries/AP_Notify/AP_Notify.cpp

@ -263,9 +263,7 @@ void AP_Notify::add_backends(void) @@ -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…
Cancel
Save