Copter: Fix initialization of Motor Interlock Aux Sw function.
This commit is contained in:
parent
16cf9471ae
commit
a035d5ad1b
@ -228,9 +228,14 @@ static void init_aux_switch_function(int8_t ch_option, uint8_t ch_flag)
|
|||||||
case AUXSW_RELAY:
|
case AUXSW_RELAY:
|
||||||
case AUXSW_LANDING_GEAR:
|
case AUXSW_LANDING_GEAR:
|
||||||
case AUXSW_MOTOR_ESTOP:
|
case AUXSW_MOTOR_ESTOP:
|
||||||
case AUXSW_MOTOR_INTERLOCK:
|
|
||||||
do_aux_switch_function(ch_option, ch_flag);
|
do_aux_switch_function(ch_option, ch_flag);
|
||||||
break;
|
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;
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user