More reliable PWM inversion switching