ArduPlane: use new ModeReason::AUX_FUNCTION

This commit is contained in:
Iampete1 2024-06-07 20:38:36 +01:00 committed by Peter Barker
parent 4ab24dc015
commit 3823493cd2
1 changed files with 1 additions and 1 deletions

View File

@ -43,7 +43,7 @@ void RC_Channel_Plane::do_aux_function_change_mode(const Mode::Number number,
switch(ch_flag) { switch(ch_flag) {
case AuxSwitchPos::HIGH: { case AuxSwitchPos::HIGH: {
// engage mode (if not possible we remain in current flight mode) // engage mode (if not possible we remain in current flight mode)
plane.set_mode_by_number(number, ModeReason::RC_COMMAND); plane.set_mode_by_number(number, ModeReason::AUX_FUNCTION);
break; break;
} }
default: default: