Updating PWM Driver to handle bad data