From bd76d15df42102bda8c2a2fbd8fce368ff23f957 Mon Sep 17 00:00:00 2001 From: Peter Barker Date: Wed, 28 Apr 2021 19:13:52 +1000 Subject: [PATCH] GCS_MAVLink: log auxillary function invocations --- libraries/GCS_MAVLink/GCS_Common.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/GCS_MAVLink/GCS_Common.cpp b/libraries/GCS_MAVLink/GCS_Common.cpp index 125d82afd5..0af9ea76ff 100644 --- a/libraries/GCS_MAVLink/GCS_Common.cpp +++ b/libraries/GCS_MAVLink/GCS_Common.cpp @@ -2525,7 +2525,7 @@ MAV_RESULT GCS_MAVLINK::handle_command_do_aux_function(const mavlink_command_lon } const RC_Channel::AUX_FUNC aux_func = (RC_Channel::AUX_FUNC)packet.param1; const RC_Channel::AuxSwitchPos position = (RC_Channel::AuxSwitchPos)packet.param2; - if (!rc().do_aux_function(aux_func, position)) { + if (!rc().run_aux_function(aux_func, position, RC_Channel::AuxFuncTriggerSource::MAVLINK)) { // note that this is not quite right; we could be more nuanced // about our return code here. return MAV_RESULT_FAILED;