The function that converts an ambient light sensor reading into a floating point percentage would sometimes return values greater than 1.0. This would happen for high input values that were slightly below the maximum threshold. As a result of this, the conversion to a display brightness value would overflow and make the display dim.
dc5aaef