lines 722 and 725, the >= 1 is redundant. we can evaluate this as a bool- if it's null or zero, it'll return false, otherwise it'll return true.
so this can be shortened to simply if(H.arm_ok())