Copter: correct defines gating flowhold mode

We have an explicit define for this mode now
This commit is contained in:
Peter Barker 2022-10-19 14:39:45 +11:00 committed by Peter Barker
parent 01a52a5427
commit d04f4d8178
2 changed files with 2 additions and 2 deletions

View File

@ -573,7 +573,7 @@ public:
ToyMode toy_mode;
#endif
#if AP_OPTICALFLOW_ENABLED
#if MODE_FLOWHOLD_ENABLED
// we need a pointer to the mode for the G2 table
void *mode_flowhold_ptr;
#endif

View File

@ -513,7 +513,7 @@ bool RC_Channel_Copter::do_aux_function(const aux_func_t ch_option, const AuxSwi
break;
case AUX_FUNC::FLOWHOLD:
#if AP_OPTICALFLOW_ENABLED
#if MODE_FLOWHOLD_ENABLED
do_aux_function_change_mode(Mode::Number::FLOWHOLD, ch_flag);
#endif
break;