AP_Button: print button index and postion on aux function trigger

This commit is contained in:
Iampete1 2022-10-13 17:41:54 +01:00 committed by Peter Barker
parent 6a4280429a
commit bedbc0a65f
1 changed files with 1 additions and 1 deletions

View File

@ -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);