DNP: when we run into a fatal printer error, STOP the queue

(Instead of HOLDing the job)
master
Solomon Peachy 1 year ago
parent 66d66ccb00
commit 5866b8b908
  1. 10
      backend_dnpds40.c

@ -1860,8 +1860,12 @@ parsed:
if (ctx->media == 0) {
int status = dnpds40_query_status(ctx);
if (status > 1000) {
ERROR("Fatal Printer Error: %d => %s, halting queue!\n", status, dnpds40_statuses(status));
return CUPS_BACKEND_HOLD;
ERROR("User-Recoverable Printer Error: %d => %s, halting queue!\n", status, dnpds40_statuses(status));
return CUPS_BACKEND_STOP;
}
if (status > 2000) {
ERROR("Fatal Printer Hardware Error: %d => %s, halting queue!\n", status, dnpds40_statuses(status));
return CUPS_BACKEND_STOP;
}
}
@ -3480,7 +3484,7 @@ static const char *dnpds40_prefixes[] = {
const struct dyesub_backend dnpds40_backend = {
.name = "DNP DS-series / Citizen C-series",
.version = "0.141",
.version = "0.142",
.uri_prefixes = dnpds40_prefixes,
.cmdline_usage = dnpds40_cmdline,
.cmdline_arg = dnpds40_cmdline_arg,

Loading…
Cancel
Save