Compensating variation in output of LED source