fixing hardware pwm