diff --git a/drivers/usbhid-ups.c b/drivers/usbhid-ups.c index c132a89..3e07556 100644 --- a/drivers/usbhid-ups.c +++ b/drivers/usbhid-ups.c @@ -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);