Copter: Fix initialization of Motor Interlock Aux Sw function.

This commit is contained in:
Robert Lefebvre 2015-03-24 14:59:06 -04:00 committed by Randy Mackay
parent 16cf9471ae
commit a035d5ad1b
1 changed files with 6 additions and 1 deletions

View File

@ -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;
}
}