citizencw01: PQTY is 'remaining prints in job'

This commit is contained in:
Solomon Peachy 2015-06-20 16:24:39 -04:00
parent b57b415bbe
commit 9c5086c89e
1 changed files with 14 additions and 16 deletions

View File

@ -564,21 +564,6 @@ static int cw01_get_info(struct cw01_ctx *ctx)
free(resp);
#if 0
/* Get Qty of prints made on this media? */
cw01_build_cmd(&cmd, "INFO", "PQTY", 0);
resp = cw01_resp_cmd(ctx, &cmd, &len);
if (!resp)
return CUPS_BACKEND_FAILED;
cw01_cleanup_string((char*)resp, len);
INFO("Prints Performed(?): '%s'\n", (char*)resp + 4);
free(resp);
#endif
/* Get Horizonal resolution */
cw01_build_cmd(&cmd, "INFO", "RESOLUTION_H", 0);
@ -695,6 +680,19 @@ static int cw01_get_status(struct cw01_ctx *ctx)
free(resp);
/* Get remaining prints in this job */
cw01_build_cmd(&cmd, "INFO", "PQTY", 0);
resp = cw01_resp_cmd(ctx, &cmd, &len);
if (!resp)
return CUPS_BACKEND_FAILED;
cw01_cleanup_string((char*)resp, len);
INFO("Prints Remaining in job: '%s'\n", (char*)resp + 4);
free(resp);
/* Generate command */
cw01_build_cmd(&cmd, "INFO", "FREE_PBUFFER", 0);
@ -863,7 +861,7 @@ static int cw01_cmdline_arg(void *vctx, int argc, char **argv)
/* Exported */
struct dyesub_backend cw01_backend = {
.name = "Citizen CW-01",
.version = "0.08",
.version = "0.09",
.uri_prefix = "citizencw01",
.cmdline_usage = cw01_cmdline,
.cmdline_arg = cw01_cmdline_arg,