From bedbc0a65f20540c9d72d72f35692f4726ec050e Mon Sep 17 00:00:00 2001 From: Iampete1 Date: Thu, 13 Oct 2022 17:41:54 +0100 Subject: [PATCH] AP_Button: print button index and postion on aux function trigger --- 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 785ce46389..280e019de4 100644 --- a/libraries/AP_Button/AP_Button.cpp +++ b/libraries/AP_Button/AP_Button.cpp @@ -279,7 +279,7 @@ void AP_Button::run_aux_functions(bool force) #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); + gcs().send_text(MAV_SEVERITY_INFO, "Button %i: executing (%s %s)", i+1, str, rc_channel->string_for_aux_pos(pos)); } #endif rc_channel->run_aux_function(func, pos, RC_Channel::AuxFuncTriggerSource::BUTTON);