Where is the code managing the hardware armed or disarmed?

I added the fifth channel in the mixer output, however it shows the same appearance when arm and disarm. It can’t disarm.
Where is the code manage it ?

Any non-throttle channel will be enabled as soon as you disable safety with the safety switch. This is by design and works better than not enabling them.

Thank you very much, I’ll find it.
The detail is that, I added the this output port through the RC_Channel because this will be an individual channel… The signal couldn’t be disarmed by the function “pwm_limit_calc”. I don’t know if the arm-flag control output-ports by this function only.

Hi, FreelyHard
Has this problem been solved?