Skip to content
Commit 84c2312c authored by Fushan Wen's avatar Fushan Wen
Browse files

Check isPresent when cumulating battery data

Some batteries are hot-removable, so it's also necessary to check the
property.

"is-present" is not necessarily bound to "power-supply". as can be seen in
https://gitlab.freedesktop.org/upower/upower/-/commit/d74536fa0ede7822f2db671a5e1785121d5b1946
and the energy properties are only reset when it's coldplugged (up_device_supply_coldplug).
parent 2d6e5c3e
Pipeline #489168 passed with stage
in 1 minute and 34 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