improved backwards compatibility of turning on switch without S parameter
forced constant output for min and max pwm
have pwm do nothing if disabled