From 1755f5b6c70c41806f46d70663ecb38bcc9a58b7 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Sat, 5 Jan 2019 13:26:46 +1100 Subject: [PATCH] AP_Notify: fixed NTF_BUZZ_ENABLE default it shouldn't be based on the polarity of the buzzer --- libraries/AP_Notify/AP_Notify.cpp | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/libraries/AP_Notify/AP_Notify.cpp b/libraries/AP_Notify/AP_Notify.cpp index 4c438b9127..5fe1108a58 100644 --- a/libraries/AP_Notify/AP_Notify.cpp +++ b/libraries/AP_Notify/AP_Notify.cpp @@ -105,6 +105,10 @@ AP_Notify *AP_Notify::_instance; #endif // BUILD_DEFAULT_LED_TYPE +#ifndef BUZZER_ENABLE_DEFAULT +#define BUZZER_ENABLE_DEFAULT 1 +#endif + // table of user settable parameters const AP_Param::GroupInfo AP_Notify::var_info[] = { @@ -117,11 +121,10 @@ const AP_Param::GroupInfo AP_Notify::var_info[] = { // @Param: BUZZ_ENABLE // @DisplayName: Buzzer enable - // @Description: Enable or disable the buzzer. Only for Linux and PX4 based boards. + // @Description: Enable or disable the buzzer. // @Values: 0:Disable,1:Enable // @User: Advanced - AP_GROUPINFO("BUZZ_ENABLE", 1, AP_Notify, _buzzer_enable, BUZZER_ON), - + AP_GROUPINFO("BUZZ_ENABLE", 1, AP_Notify, _buzzer_enable, BUZZER_ENABLE_DEFAULT), // @Param: LED_OVERRIDE // @DisplayName: Setup for MAVLink LED override