check the max and min on current setpoint

Change-Id: I1a37b42a96dfef30d569099b9cdaf7ad54b621ed