Open jacobgkau opened 2 months ago
Kernel documentation states regarding the /sys/class/power_supply/<supply_name>/current_now value:
/sys/class/power_supply/<supply_name>/current_now
Negative values are used for discharging batteries, positive values for charging batteries and for USB IBUS current.
However, we currently report positive (or unsigned) values for a battery whether we're charging or discharging.
@crawfxrd says it's a u16 in the code.
Kernel documentation states regarding the
/sys/class/power_supply/<supply_name>/current_now
value:However, we currently report positive (or unsigned) values for a battery whether we're charging or discharging.
@crawfxrd says it's a u16 in the code.