slight refactoring of PPM/PWM failsafe to make it actually work and honor failsafeThreshold value.