Updated PWMSlope function
Contribution of lnevo
close #70