From 2698d51ada1e22cee0850531882d72882fcd34fa Mon Sep 17 00:00:00 2001 From: Anton Date: Fri, 15 Sep 2023 18:12:26 +0300 Subject: [PATCH] Add debug message --- drivers/usbhid-ups.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/usbhid-ups.c b/drivers/usbhid-ups.c index ba0083c..9b496d2 100644 --- a/drivers/usbhid-ups.c +++ b/drivers/usbhid-ups.c @@ -1817,6 +1817,8 @@ static int ups_infoval_set(hid_info_t *item, double value) return -1; } + fprintf(stdout, "%s %lf", nutvalue, value); + /* deal with boolean items */ if (!strncmp(item->info_type, "BOOL", 4)) { process_boolean_info(nutvalue);