battery: Make repolling more explicit

System Internals / UPower - Benjamin Berg [redhat.com] - 21 July 2022 09:06 UTC

Estimation code can request a battery poll if the value is not good enough at the point. Make this a little bit more explicit by renaming the intenral variable to "repoll_needed" and automatically resetting it to FALSE.

1ab1b70 battery: Make repolling more explicit
src/up-device-battery.c | 40 +++++++++++++++++++---------------------
1 file changed, 19 insertions(+), 21 deletions(-)

Upstream: cgit.freedesktop.org


  • Share