dnpds40: Only error out if we get a non-idle/printing/cooling status.

This commit is contained in:
Solomon Peachy 2014-10-29 22:07:58 -04:00
parent aa236d1ae6
commit f77357977d
1 changed files with 5 additions and 4 deletions

View File

@ -520,10 +520,11 @@ top:
INFO("Printer cooling, retrying...\n");
sleep(1);
goto top;
} else {
ERROR("Printer Status: %s => %s\n", (char*)resp, dnpds40_statuses((char*)resp));
free(resp);
return CUPS_BACKEND_RETRY_CURRENT;
}
ERROR("Printer Status: %s => %s\n", (char*)resp, dnpds40_statuses((char*)resp));
free(resp);
return CUPS_BACKEND_RETRY_CURRENT;
}
/* Send the stream over as individual data chunks */
@ -994,7 +995,7 @@ static int dnpds40_cmdline_arg(void *vctx, int argc, char **argv)
/* Exported */
struct dyesub_backend dnpds40_backend = {
.name = "DNP DS40/DS80/DSRX1",
.version = "0.32",
.version = "0.33",
.uri_prefix = "dnpds40",
.cmdline_usage = dnpds40_cmdline,
.cmdline_arg = dnpds40_cmdline_arg,