Skip to content

power: Ambient light moving average now time-aware

The readings from the ambient light sensor were being filtered using an exponential moving average (equivalently, a first-order low pass filter), but the average did not account for the time since the previous reading. Now the power manager records the time of the last reading, making the brightness adjustments more even.

Edited by Kyle Hofmann

Merge request reports