Pwm: limit _max to PID_PWM_MAX - 1

Reported-by: Hagrid