AP_Button: make emitting nice strings on aux functions a selectable feature

This commit is contained in:
Peter Barker 2022-10-06 22:00:15 +11:00 committed by Peter Barker
parent f3b748bf0b
commit f24a8cd176

View File

@ -276,7 +276,7 @@ void AP_Button::run_aux_functions(bool force)
const RC_Channel::AuxSwitchPos pos = value ? RC_Channel::AuxSwitchPos::HIGH : RC_Channel::AuxSwitchPos::LOW;
// I wonder if we can do better here:
#if !HAL_MINIMIZE_FEATURES
#if AP_RC_CHANNEL_AUX_FUNCTION_STRINGS_ENABLED
const char *str = rc_channel->string_for_aux_function(func);
if (str != nullptr) {
gcs().send_text(MAV_SEVERITY_INFO, "Button: executing (%s)", str);