Skip to content
Commit b2e33bee authored by Fabian Vogt's avatar Fabian Vogt
Browse files

chargethresholdhelper: Filter out batteries without thresholds early

Previously, getBatteries() returned all batteries, even those without support
for thresholds. While getthreshold simply skipped those where reading
fails, setthreshold exited early on the first failure, leaving the remaining
batteries untouched.

By already performing filtering in getBatteries(), this should now behave more
consistently and work also if not all batteries support thresholds.

BUG: 464535


(cherry picked from commit e0a74cc3)
parent d407f31f
Pipeline #315951 passed with stage
in 4 minutes and 58 seconds
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment