kodak605: Further enhancments
* Debug message improved * More known error codes * More print sizes
This commit is contained in:
parent
acc2b1cdf7
commit
8482e1c46a
|
@ -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);
|
||||
|
|
|
@ -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
|
||||
#
|
||||
|
|
|
Loading…
Reference in a new issue