Copter: correct defines gating flowhold mode
We have an explicit define for this mode now
This commit is contained in:
parent
01a52a5427
commit
d04f4d8178
@ -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
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user