From e7000fc01ca171527331a029affaadb91cda0c48 Mon Sep 17 00:00:00 2001 From: Anton Date: Sun, 17 Sep 2023 14:44:12 +0300 Subject: [PATCH] Add frequency to the properties --- drivers/rpi-hid.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/rpi-hid.c b/drivers/rpi-hid.c index 0789463..51df91f 100644 --- a/drivers/rpi-hid.c +++ b/drivers/rpi-hid.c @@ -130,6 +130,8 @@ static hid_info_t rpi_hid2nut[] = { /* Input page */ { "input.voltage", 0, 0, "UPS.Input.Voltage", NULL, "%.1f", 0, NULL }, { "input.voltage.nominal", 0, 0, "UPS.Input.ConfigVoltage", NULL, "%.0f", 0, NULL }, + { "input.frequency", 0, 0, "UPS.Input.Frequency", NULL, "%.3f", 0, NULL }, + { "input.frequency.nominal", 0, 0, "UPS.Input.ConfigFrequency", NULL, "%.3f", 0, NULL }, { "input.transfer.low", ST_FLAG_RW | ST_FLAG_STRING, 10, "UPS.Output.LowVoltageTransfer", NULL, "%.0f", HU_FLAG_SEMI_STATIC, NULL }, { "input.transfer.high", ST_FLAG_RW | ST_FLAG_STRING, 10, "UPS.Output.HighVoltageTransfer", NULL, "%.0f", HU_FLAG_SEMI_STATIC, NULL }, /* used by APC BackUPS RS */