diff --git a/ArduCopter/RC_Channel.cpp b/ArduCopter/RC_Channel.cpp index bc4725223c..6bdf05b230 100644 --- a/ArduCopter/RC_Channel.cpp +++ b/ArduCopter/RC_Channel.cpp @@ -65,7 +65,6 @@ void RC_Channel_Copter::init_aux_function(const aux_func_t ch_option, const aux_ switch(ch_option) { case AUX_FUNC::SIMPLE_MODE: case AUX_FUNC::RANGEFINDER: - case AUX_FUNC::FENCE: case AUX_FUNC::SUPERSIMPLE_MODE: case AUX_FUNC::ACRO_TRAINER: case AUX_FUNC::PARACHUTE_ENABLE: @@ -245,19 +244,6 @@ void RC_Channel_Copter::do_aux_function(const aux_func_t ch_option, const aux_sw #endif break; - case AUX_FUNC::FENCE: -#if AC_FENCE == ENABLED - // enable or disable the fence - if (ch_flag == HIGH) { - copter.fence.enable(true); - copter.Log_Write_Event(DATA_FENCE_ENABLE); - } else { - copter.fence.enable(false); - copter.Log_Write_Event(DATA_FENCE_DISABLE); - } -#endif - break; - case AUX_FUNC::ACRO_TRAINER: #if MODE_ACRO_ENABLED == ENABLED switch(ch_flag) {