Blimp: use new ModeReason::AUX_FUNCTION

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

View File

@ -79,7 +79,7 @@ void RC_Channel_Blimp::do_aux_function_change_mode(const Mode::Number mode,
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)
const bool success = blimp.set_mode(mode, ModeReason::RC_COMMAND); const bool success = blimp.set_mode(mode, ModeReason::AUX_FUNCTION);
if (blimp.ap.initialised) { if (blimp.ap.initialised) {
if (success) { if (success) {
AP_Notify::events.user_mode_change = 1; AP_Notify::events.user_mode_change = 1;