Fixed typo in PWM polarity check.