Hi NUT,

We kindly request adding a HID usage for "NeedReplacement" to the NUT usb 
driver file cps-hid.c (USBHID-UPS(8) 
https://networkupstools.org/docs/man/usbhid-ups.html), that "RB" (Replace 
battery) information can be displayed in the ups.status.

In NUT source code file cps-hid.c , the line 400 is
{ "BOOL", 0, 0, "UPS.PowerSummary.PresentStatus.RemainingTimeLimitExpired", 
NULL, NULL, 0, timelimitexpired_info },
Please insert the following code after line 400 for our new HID usage 
(NeedReplacement).
{ "BOOL", 0, 0, "UPS.PowerSummary.PresentStatus.NeedReplacement", NULL, NULL, 
0, replacebatt_info },

Once you have confirmed the request to add the source code, please provide a 
test version of the NUT software with the added HID usage (NeedReplacement) 
code for our testing and verification.
Please let me know if you have any questions. Thank you very much.

John
_______________________________________________
Nut-upsdev mailing list
[email protected]
https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/nut-upsdev

Reply via email to