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!"); }