From 7e83ec69d1967c8a9d6f54c82a53b05ce794f962 Mon Sep 17 00:00:00 2001 From: Anton Date: Fri, 15 Sep 2023 11:46:15 +0300 Subject: [PATCH] Add status debug --- drivers/usbhid-ups.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/usbhid-ups.c b/drivers/usbhid-ups.c index 3e07556..0577b9c 100644 --- a/drivers/usbhid-ups.c +++ b/drivers/usbhid-ups.c @@ -1588,6 +1588,7 @@ static int reconnect_ups(void) alarms. */ static void ups_alarm_set(void) { + fprintf(stdout, "%d\n", ups_status & STATUS(NOBATTERY)); if (ups_status & STATUS(REPLACEBATT)) { alarm_set("Replace battery!"); }