diff --git a/ChangeLog b/ChangeLog index c169433c6..7b144cdd1 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,6 @@ +2013-12-23 Rolf Bensch + * backend/pixma_common.c: fix usb cmd transaction timeout + 2013-12-23 Stéphane Voltz * backend/genesys_devices.c backend/genesys.c backend/genesys_low.h backend/genesys_gl841.[ch]: color calibration improvement for LiDE80, diff --git a/backend/pixma_common.c b/backend/pixma_common.c index b417d078a..d21eb1c6e 100644 --- a/backend/pixma_common.c +++ b/backend/pixma_common.c @@ -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)