From 6e0b5c204af51f619196593309dc88635450fac3 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Tue, 10 Apr 2018 21:09:08 +1000 Subject: [PATCH] AP_Notify: support buzzer backend on ChibiOS --- libraries/AP_Notify/AP_Notify.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/libraries/AP_Notify/AP_Notify.cpp b/libraries/AP_Notify/AP_Notify.cpp index acce24011c..52032d951a 100644 --- a/libraries/AP_Notify/AP_Notify.cpp +++ b/libraries/AP_Notify/AP_Notify.cpp @@ -239,6 +239,9 @@ void AP_Notify::add_backends(void) # else ADD_BACKEND(new AP_BoardLED()); # endif +#ifdef BUZZER_PIN + ADD_BACKEND(new Buzzer()); +#endif ADD_BACKEND(new ToshibaLED_I2C(TOSHIBA_LED_I2C_BUS_EXTERNAL)); ADD_BACKEND(new ToshibaLED_I2C(TOSHIBA_LED_I2C_BUS_INTERNAL)); ADD_BACKEND(new Display());