added code to set flag when the servo position is bounded