From 5deae0a58f1b300897b735971250e86568753bd1 Mon Sep 17 00:00:00 2001 From: Anton Date: Sat, 7 Oct 2023 22:21:20 +0300 Subject: [PATCH] Fix battery charge current --- drivers/rpi-hid.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/rpi-hid.c b/drivers/rpi-hid.c index 5f7db98..9ca6e01 100644 --- a/drivers/rpi-hid.c +++ b/drivers/rpi-hid.c @@ -75,7 +75,7 @@ static hid_info_t rpi_hid2nut[] = { { "battery.runtime.low", ST_FLAG_RW | ST_FLAG_STRING, 10, "UPS.Battery.RemainingTimeLimit", NULL, "%.0f", HU_FLAG_SEMI_STATIC, NULL }, { "battery.voltage", 0, 0, "UPS.Battery.Voltage", NULL, "%.1f", 0, NULL }, { "battery.voltage.nominal", 0, 0, "UPS.Battery.ConfigVoltage", NULL, "%.1f", 0, NULL }, - { "battery.current", 0, 0, "UPS.Battery.Current", NULL, "%.3f", 0, NULL }, + { "battery.current", 0, 0, "UPS.Charger.Current", NULL, "%.3f", 0, NULL }, { "battery.temperature", 0, 0, "UPS.Battery.Temperature", NULL, "%s", 0, kelvin_celsius_conversion }, { "battery.type", 0, 0, "UPS.Battery.iDeviceChemistry", NULL, "%s", 0, stringid_conversion }, { "battery.mfr.date", ST_FLAG_RW | ST_FLAG_STRING, 10, "UPS.Battery.ManufacturerDate", NULL, "%s", HU_FLAG_SEMI_STATIC, date_conversion },