AP_Notify: rename/remove HAL_BUZZER_ON to DEFAULT_BUZZ_ON_LVL

This commit is contained in:
Henry Wurzburg 2023-04-22 16:11:08 -05:00 committed by Peter Barker
parent efd0937568
commit 11def9b958

View File

@ -138,8 +138,8 @@ AP_Notify *AP_Notify::_singleton;
#define HAL_BUZZER_PIN -1 #define HAL_BUZZER_PIN -1
#endif #endif
#ifndef HAL_BUZZER_ON #ifndef DEFAULT_BUZZ_ON_LVL
#define HAL_BUZZER_ON 1 #define DEFAULT_BUZZ_ON_LVL 1
#endif #endif
// table of user settable parameters // table of user settable parameters
@ -203,7 +203,7 @@ const AP_Param::GroupInfo AP_Notify::var_info[] = {
// @Description: Specifies pin level that indicates buzzer should play // @Description: Specifies pin level that indicates buzzer should play
// @Values: 0:LowIsOn,1:HighIsOn // @Values: 0:LowIsOn,1:HighIsOn
// @User: Advanced // @User: Advanced
AP_GROUPINFO("BUZZ_ON_LVL", 7, AP_Notify, _buzzer_level, HAL_BUZZER_ON), AP_GROUPINFO("BUZZ_ON_LVL", 7, AP_Notify, _buzzer_level, DEFAULT_BUZZ_ON_LVL),
// @Param: BUZZ_VOLUME // @Param: BUZZ_VOLUME
// @DisplayName: Buzzer volume // @DisplayName: Buzzer volume