hiti: Work around P520/P525 firmware bug (v1.19 or newer)

(Printer loses its mind if a USB_CLEAR_ENDPOINT_HALT is sent)
This commit is contained in:
Solomon Peachy 2019-11-15 20:47:00 -05:00
parent 67f4c8afac
commit 4c321f3a8d
1 changed files with 7 additions and 6 deletions

View File

@ -878,6 +878,12 @@ static int hiti_attach(void *vctx, struct libusb_device_handle *dev, int type,
ctx->jobid++;
if (test_mode < TEST_MODE_NOATTACH) {
/* P52x firmware v1.19+ lose their minds when Linux
issues a routine CLEAR_ENDPOINT_HALT. Printer can recover
if it is reset. Unclear what the side effects are.. */
if (ctx->type == P_HITI_52X)
libusb_reset_device(dev);
ret = hiti_query_unk8010(ctx);
if (ret)
return ret;
@ -2133,7 +2139,7 @@ static const char *hiti_prefixes[] = {
struct dyesub_backend hiti_backend = {
.name = "HiTi Photo Printers",
.version = "0.13",
.version = "0.14",
.uri_prefixes = hiti_prefixes,
.cmdline_usage = hiti_cmdline,
.cmdline_arg = hiti_cmdline_arg,
@ -2177,9 +2183,4 @@ struct dyesub_backend hiti_backend = {
- Incorporate changes for CS-series card printers
- More "Matrix table" decoding work
WANRING: P52x FIRMWARE
v1.19.0.X FAILS to work on Linux; USB timeout problems!
v1.18.0.B Functions properly.
*/