motor stall protection function.