From 2c7cce20bad3e80e0063fcc9e7f34f779191f997 Mon Sep 17 00:00:00 2001 From: Iampete1 Date: Fri, 13 Dec 2024 21:15:46 +0000 Subject: [PATCH] GCS_MAVLink: move to AuxFuncTrigger structure --- 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 91dfd299c3..b3d3bc1f88 100644 --- a/libraries/GCS_MAVLink/GCS_Common.cpp +++ b/libraries/GCS_MAVLink/GCS_Common.cpp @@ -3110,7 +3110,7 @@ MAV_RESULT GCS_MAVLINK::handle_command_do_aux_function(const mavlink_command_int } 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().run_aux_function(aux_func, position, RC_Channel::AuxFuncTriggerSource::MAVLINK)) { + if (!rc().run_aux_function(aux_func, position, RC_Channel::AuxFuncTrigger::Source::MAVLINK)) { // note that this is not quite right; we could be more nuanced // about our return code here. return MAV_RESULT_FAILED;