mitsuw5k: Extend the spool format to specify copy count
This commit is contained in:
parent
db3977beae
commit
e6202fad97
|
@ -370,7 +370,8 @@ struct mitsuw5k_job_hdr {
|
|||
uint8_t colorconv; // 1: off, 0: internal
|
||||
uint8_t sharp_H; // 0-8 or 0xff (ie printer)
|
||||
uint8_t sharp_V; // 0-8 or 0xff (ie printer)
|
||||
/*@21*/ uint8_t pad[512-21];
|
||||
uint8_t copies; // EXTENSION
|
||||
/*@22*/ uint8_t pad[512-22];
|
||||
} __attribute__((packed));
|
||||
|
||||
struct mitsuw5k_plane_hdr {
|
||||
|
@ -1204,6 +1205,13 @@ static int mitsud90_read_parse(void *vctx, const void **vjob, int data_fd, int c
|
|||
/* Note the job has an OPTIONAL start block.
|
||||
We check for that later */
|
||||
|
||||
job->common.copies = hdr->copies;
|
||||
hdr->copies = 0;
|
||||
|
||||
/* Use larger of our copy counts */
|
||||
if (job->common.copies < copies)
|
||||
job->common.copies = copies;
|
||||
|
||||
goto read_data;
|
||||
}
|
||||
|
||||
|
@ -2672,7 +2680,7 @@ static const struct device_id mitsud90_devices[] = {
|
|||
/* Exported */
|
||||
const struct dyesub_backend mitsud90_backend = {
|
||||
.name = "Mitsubishi CP-D90/CP-M1/CP-W5000",
|
||||
.version = "0.56" " (lib " LIBMITSU_VER ")",
|
||||
.version = "0.57" " (lib " LIBMITSU_VER ")",
|
||||
.flags = BACKEND_FLAG_DUMMYPRINT,
|
||||
.uri_prefixes = mitsud90_prefixes,
|
||||
.devices = mitsud90_devices,
|
||||
|
|
Loading…
Reference in a new issue