diff --git a/libraries/RC_Channel/RC_Channel.cpp b/libraries/RC_Channel/RC_Channel.cpp index 57c4ac0ae8..fbb0d17936 100644 --- a/libraries/RC_Channel/RC_Channel.cpp +++ b/libraries/RC_Channel/RC_Channel.cpp @@ -1148,6 +1148,7 @@ bool RC_Channel::do_aux_function(const aux_func_t ch_option, const AuxSwitchPos } break; +#if AP_LANDINGGEAR_ENABLED case AUX_FUNC::LANDING_GEAR: { AP_LandingGear *lg = AP_LandingGear::get_singleton(); if (lg == nullptr) { @@ -1166,6 +1167,7 @@ bool RC_Channel::do_aux_function(const aux_func_t ch_option, const AuxSwitchPos } break; } +#endif case AUX_FUNC::GPS_DISABLE: AP::gps().force_disable(ch_flag == AuxSwitchPos::HIGH);