summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSolomon Peachy <pizza@shaftnet.org>2018-01-10 08:10:13 -0500
committerSolomon Peachy <pizza@shaftnet.org>2018-01-10 08:10:13 -0500
commitab5b9baaf78651b44713efdcfa51a573d4efaa71 (patch)
tree180e9f39b1fa53188ca4bbb23661a5241e030076
parent7db590c56f4b8b5402e9ff7db02aa9e9d3a6a87b (diff)
downloadselphy_print-ab5b9baaf78651b44713efdcfa51a573d4efaa71.tar.gz
selphy_print-ab5b9baaf78651b44713efdcfa51a573d4efaa71.tar.bz2
selphy_print-ab5b9baaf78651b44713efdcfa51a573d4efaa71.zip
s1245: The GET_MATTE response is 7 bytes, not 6.
This prevents a LIBUSB_ERROR_OVERFLOW response when trying to print somehting in matte modes.
-rw-r--r--backend_shinkos1245.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/backend_shinkos1245.c b/backend_shinkos1245.c
index 64375da..da30c17 100644
--- a/backend_shinkos1245.c
+++ b/backend_shinkos1245.c
@@ -397,7 +397,7 @@ struct shinkos1245_resp_matte {
uint8_t code;
uint8_t mode;
int8_t level;
- uint8_t reserved[3];
+ uint8_t reserved[4];
} __attribute__((packed));
#define MATTE_MODE_MATTE 0x00
@@ -1518,7 +1518,7 @@ top:
if (i < 0)
goto printer_error;
if (i > 0) {
- INFO("Can't set matte intensity when printing in progres...\n");
+ INFO("Can't set matte intensity when printing in progress...\n");
state = S_IDLE;
sleep(1);
break;
@@ -1643,7 +1643,7 @@ static int shinkos1245_query_serno(struct libusb_device_handle *dev, uint8_t end
struct dyesub_backend shinkos1245_backend = {
.name = "Shinko/Sinfonia CHC-S1245",
- .version = "0.17WIP",
+ .version = "0.18",
.uri_prefix = "shinkos1245",
.cmdline_usage = shinkos1245_cmdline,
.cmdline_arg = shinkos1245_cmdline_arg,