From f24a8cd176b5ac0b97a2f5a3f3f701588a9e7a61 Mon Sep 17 00:00:00 2001 From: Peter Barker Date: Thu, 6 Oct 2022 22:00:15 +1100 Subject: [PATCH] AP_Button: make emitting nice strings on aux functions a selectable feature --- libraries/AP_Button/AP_Button.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/AP_Button/AP_Button.cpp b/libraries/AP_Button/AP_Button.cpp index 6fb4e58e98..785ce46389 100644 --- a/libraries/AP_Button/AP_Button.cpp +++ b/libraries/AP_Button/AP_Button.cpp @@ -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);