From a035d5ad1b418c38ff374da17e5af34ee8f35d0d Mon Sep 17 00:00:00 2001 From: Robert Lefebvre Date: Tue, 24 Mar 2015 14:59:06 -0400 Subject: [PATCH] Copter: Fix initialization of Motor Interlock Aux Sw function. --- ArduCopter/switches.pde | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/ArduCopter/switches.pde b/ArduCopter/switches.pde index de0c3e235e..2931a19d3e 100644 --- a/ArduCopter/switches.pde +++ b/ArduCopter/switches.pde @@ -228,9 +228,14 @@ static void init_aux_switch_function(int8_t ch_option, uint8_t ch_flag) case AUXSW_RELAY: case AUXSW_LANDING_GEAR: case AUXSW_MOTOR_ESTOP: - case AUXSW_MOTOR_INTERLOCK: do_aux_switch_function(ch_option, ch_flag); break; + + case AUXSW_MOTOR_INTERLOCK: + set_using_interlock(check_if_auxsw_mode_used(AUXSW_MOTOR_INTERLOCK)); + do_aux_switch_function(ch_option, ch_flag); + break; + } }