dkonigsberg Fix a display brightness overflow issue
dc5aaef May 22, 2020
Fix a display brightness overflow issue
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