canonselphy: Theoretically add support for the CP790
This commit is contained in:
parent
ee7dae82a5
commit
375aed9243
|
@ -106,11 +106,11 @@ static struct printer_data selphy_printers[] = {
|
|||
.model = "SELPHY ES40/CP790",
|
||||
.init_length = 16,
|
||||
.foot_length = 12,
|
||||
.init_readback = { 0x00, 0x00, -1, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, -1 },
|
||||
.ready_y_readback = { 0x00, 0x01, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, -1 },
|
||||
.ready_m_readback = { 0x00, 0x03, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, -1 },
|
||||
.ready_c_readback = { 0x00, 0x05, 0x03, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, -1 },
|
||||
.done_c_readback = { 0x00, 0x00, 0x10, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, -1 },
|
||||
.init_readback = { 0x00, 0x00, -1, 0x00, 0x00, -1, -1, 0x00, 0x00, 0x00, 0x00, -1 },
|
||||
.ready_y_readback = { 0x00, 0x01, 0x01, 0x00, -1, -1, 0x00, 0x00, 0x00, 0x00, 0x00, -1 },
|
||||
.ready_m_readback = { 0x00, 0x03, 0x02, 0x00, -1, -1, 0x00, 0x00, 0x00, 0x00, 0x00, -1 },
|
||||
.ready_c_readback = { 0x00, 0x05, 0x03, 0x00, -1, -1, 0x00, 0x00, 0x00, 0x00, 0x00, -1 },
|
||||
.done_c_readback = { 0x00, 0x00, 0x10, 0x00, -1, -1, 0x00, 0x00, 0x00, 0x00, 0x00, -1 },
|
||||
// .clear_error
|
||||
// .paper_codes
|
||||
.pgcode_offset = 2,
|
||||
|
@ -223,7 +223,7 @@ static int fancy_memcmp(const uint8_t *buf_a, const int16_t *buf_b, uint len, in
|
|||
if (papercode_offset != -1 && i == (uint) papercode_offset) {
|
||||
if (papercode_val == -1)
|
||||
continue;
|
||||
else if (buf_a[i] != papercode_val)
|
||||
else if ((buf_a[i] & 0xf) != (papercode_val & 0xf))
|
||||
return INCORRECT_PAPER;
|
||||
} else if (buf_b[i] == -1)
|
||||
continue;
|
||||
|
@ -666,7 +666,7 @@ top:
|
|||
|
||||
struct dyesub_backend canonselphy_backend = {
|
||||
.name = "Canon SELPHY CP/ES",
|
||||
.version = "0.67",
|
||||
.version = "0.68",
|
||||
.multipage_capable = 1,
|
||||
.uri_prefix = "canonselphy",
|
||||
.init = canonselphy_init,
|
||||
|
|
Loading…
Reference in a new issue