fix usb cmd transaction timeout

merge-requests/1/head
Rolf Bensch 2013-12-23 10:02:49 +01:00
rodzic a9dc869717
commit 473d976c0f
2 zmienionych plików z 6 dodań i 0 usunięć

Wyświetl plik

@ -1,3 +1,6 @@
2013-12-23 Rolf Bensch <rolf at bensch hyphen online dot de>
* backend/pixma_common.c: fix usb cmd transaction timeout
2013-12-23 Stéphane Voltz <stef.dev@free.fr>
* backend/genesys_devices.c backend/genesys.c backend/genesys_low.h
backend/genesys_gl841.[ch]: color calibration improvement for LiDE80,

Wyświetl plik

@ -655,7 +655,10 @@ pixma_cmd_transaction (pixma_t * s, const void *cmd, unsigned cmdlen,
{
error = pixma_read (s->io, data, expected_len);
if (error == PIXMA_ETIMEDOUT)
{
PDBG (pixma_dbg (2, "No response yet. Timed out in %d sec.\n", tmo));
pixma_sleep (1000000); /* 1s timeout */
}
}
while (error == PIXMA_ETIMEDOUT && --tmo != 0);
if (error < 0)