Add status debug
This commit is contained in:
parent
1016990cc6
commit
7e83ec69d1
|
@ -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!");
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user