Revert debug messages

This commit is contained in:
Anton 2023-09-17 14:39:17 +03:00
parent 0c1d821d0a
commit 963c2097ce

View File

@ -943,11 +943,8 @@ void upsdrv_updateinfo(void)
alarm_init();
if (hid_ups_walk(HU_WALKMODE_FULL_UPDATE) == FALSE) {
upsdebugx(1, "Boom...");
if (hid_ups_walk(HU_WALKMODE_FULL_UPDATE) == FALSE)
return;
}
upsdebugx(1, "Boom2...");
lastpoll = now;
data_has_changed = FALSE;
@ -1591,7 +1588,6 @@ 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!");
}
@ -1817,8 +1813,6 @@ static int ups_infoval_set(hid_info_t *item, double value)
return -1;
}
fprintf(stdout, "%s %lf %s %s\n", nutvalue, value, item->hidpath, item->info_type);
/* deal with boolean items */
if (!strncmp(item->info_type, "BOOL", 4)) {
process_boolean_info(nutvalue);