Copter: set source index when running aux functions

This commit is contained in:
Iampete1 2024-12-20 22:24:58 +00:00 committed by Andrew Tridgell
parent 9ebb87816a
commit 31eb10451c

View File

@ -140,7 +140,7 @@ void RC_Channel_Copter::init_aux_function(const AUX_FUNC ch_option, const AuxSwi
case AUX_FUNC::CUSTOM_CONTROLLER:
case AUX_FUNC::WEATHER_VANE_ENABLE:
case AUX_FUNC::TRANSMITTER_TUNING:
run_aux_function(ch_option, ch_flag, AuxFuncTrigger::Source::INIT);
run_aux_function(ch_option, ch_flag, AuxFuncTrigger::Source::INIT, ch_in);
break;
default:
RC_Channel::init_aux_function(ch_option, ch_flag);