kopia lustrzana https://gitlab.com/sane-project/backends
fix usb cmd transaction timeout
rodzic
a9dc869717
commit
473d976c0f
|
@ -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,
|
||||
|
|
|
@ -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)
|
||||
|
|
Ładowanie…
Reference in New Issue