kodak605: Further enhancments

* Debug message improved
 * More known error codes
 * More print sizes
This commit is contained in:
Solomon Peachy 2023-03-28 17:47:39 -04:00
parent acc2b1cdf7
commit 8482e1c46a
2 changed files with 10 additions and 1 deletions

View file

@ -148,6 +148,7 @@ static const char *error_codes_605(uint8_t major, uint8_t minor)
switch(major) {
case 0x01: /* "Controller Error" */
switch(minor) {
case 0x0c:
default:
return "Controller: Unknown";
}
@ -168,6 +169,11 @@ static const char *error_codes_605(uint8_t major, uint8_t minor)
}
case 0x5: /* "Paper Jam" */
switch (minor) {
case 0x0c:
case 0x17:
case 0x2e:
case 0x52:
case 0x53:
default:
return "Paper Jam: Unknown";
}
@ -746,7 +752,7 @@ static void kodak605_dump_mediainfo(struct kodak605_media_list *media)
DEBUG("Legal print sizes:\n");
for (i = 0 ; i < media->count ; i++) {
DEBUG("\t%d: %ux%u (%x)\n", i,
DEBUG("\t%d: %ux%u (%02x)\n", i,
media->entries[i].columns,
media->entries[i].rows,
media->entries[i].code);

View file

@ -74,6 +74,9 @@ kodak-6850,0x040a,0x402b,0x3,PageSize=w360h504
kodak-605,0x040a,0x402e,0xb,PageSize=w144h432
kodak-605,0x040a,0x402e,0xb,PageSize=w216h432
kodak-605,0x040a,0x402e,0xb,PageSize=w288h432
kodak-605,0x040a,0x402e,0xb,PageSize=w288h432-div2
kodak-605,0x040a,0x402e,0xb,PageSize=w432ah432
kodak-605,0x040a,0x402e,0xb,PageSize=w432ah432-div2
kodak-605,0x040a,0x402e,0xb,PageSize=w432h576
kodak-605,0x040a,0x402e,0x3,PageSize=w360h504
#

1 #gp_printername,vid,pid,type,gp_options[,pano_options]
74 kodak-605,0x040a,0x402e,0xb,PageSize=w144h432
75 kodak-605,0x040a,0x402e,0xb,PageSize=w216h432
76 kodak-605,0x040a,0x402e,0xb,PageSize=w288h432
77 kodak-605,0x040a,0x402e,0xb,PageSize=w288h432-div2
78 kodak-605,0x040a,0x402e,0xb,PageSize=w432ah432
79 kodak-605,0x040a,0x402e,0xb,PageSize=w432ah432-div2
80 kodak-605,0x040a,0x402e,0xb,PageSize=w432h576
81 kodak-605,0x040a,0x402e,0x3,PageSize=w360h504
82 #