Revert "hiti: Fix data length specified in CMD_SEPD"
This reverts commit 49a606d5a8
.
I made the change in the wrong place, and it turns out it was fine.
This commit is contained in:
parent
49a606d5a8
commit
7e5d0b7ed1
|
@ -1340,7 +1340,7 @@ static int hiti_seht2(struct hiti_ctx *ctx, uint8_t plane,
|
||||||
struct hiti_seht2 *cmd = (struct hiti_seht2 *)cmdbuf;
|
struct hiti_seht2 *cmd = (struct hiti_seht2 *)cmdbuf;
|
||||||
int ret, num = 0;
|
int ret, num = 0;
|
||||||
|
|
||||||
buf_len += 8;
|
buf_len += 5;
|
||||||
|
|
||||||
cmd->hdr = 0xa5;
|
cmd->hdr = 0xa5;
|
||||||
cmd->len = cpu_to_be16(buf_len >> 8);
|
cmd->len = cpu_to_be16(buf_len >> 8);
|
||||||
|
@ -1349,7 +1349,7 @@ static int hiti_seht2(struct hiti_ctx *ctx, uint8_t plane,
|
||||||
cmd->lenb = buf_len & 0xff;
|
cmd->lenb = buf_len & 0xff;
|
||||||
cmd->plane = plane;
|
cmd->plane = plane;
|
||||||
|
|
||||||
buf_len -= 8;
|
buf_len -= 5;
|
||||||
|
|
||||||
/* Send over command */
|
/* Send over command */
|
||||||
if ((ret = send_data(ctx->conn, (uint8_t*) cmd, sizeof(*cmd)))) {
|
if ((ret = send_data(ctx->conn, (uint8_t*) cmd, sizeof(*cmd)))) {
|
||||||
|
@ -2807,7 +2807,7 @@ static const char *hiti_prefixes[] = {
|
||||||
|
|
||||||
const struct dyesub_backend hiti_backend = {
|
const struct dyesub_backend hiti_backend = {
|
||||||
.name = "HiTi Photo Printers",
|
.name = "HiTi Photo Printers",
|
||||||
.version = "0.48",
|
.version = "0.47",
|
||||||
.uri_prefixes = hiti_prefixes,
|
.uri_prefixes = hiti_prefixes,
|
||||||
.cmdline_usage = hiti_cmdline,
|
.cmdline_usage = hiti_cmdline,
|
||||||
.cmdline_arg = hiti_cmdline_arg,
|
.cmdline_arg = hiti_cmdline_arg,
|
||||||
|
|
Loading…
Reference in New Issue