Add status debug

This commit is contained in:
Anton 2023-09-15 11:46:15 +03:00
parent 1016990cc6
commit 7e83ec69d1

View File

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