--- components/battery.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/components/battery.c b/components/battery.c index b12c59e..9fa1014 100644 --- a/components/battery.c +++ b/components/battery.c _AT_@ -14,8 +14,8 @@ #define POWER_SUPPLY_STATUS "/sys/class/power_supply/%s/status" #define POWER_SUPPLY_CHARGE "/sys/class/power_supply/%s/charge_now" #define POWER_SUPPLY_ENERGY "/sys/class/power_supply/%s/energy_now" - #define POWER_SUPPLY_CURRENT "/sys/class/power_supply/%s/current" - #define POWER_SUPPLY_POWER "/sys/class/power_supply/%s/power" + #define POWER_SUPPLY_CURRENT "/sys/class/power_supply/%s/current_now" + #define POWER_SUPPLY_POWER "/sys/class/power_supply/%s/power_now" static const char * pick(const char *bat, const char *f1, const char *f2, char *path, -- 2.38.1Received on Sun Nov 27 2022 - 05:11:01 CET
This archive was generated by hypermail 2.3.0 : Sun Nov 27 2022 - 18:12:30 CET