Skip to content

Commit

Permalink
AP_Button: make emitting nice strings on aux functions a selectable f…
Browse files Browse the repository at this point in the history
…eature
  • Loading branch information
peterbarker committed Oct 6, 2022
1 parent a3d90b9 commit 518fe75
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libraries/AP_Button/AP_Button.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 518fe75

Please sign in to comment.