kopia lustrzana https://gitlab.com/sane-project/backends
pixma_io_sanei.c: corrected error handling for bjnp interface
rodzic
fb1b31f82a
commit
cea03f3946
|
@ -567,8 +567,7 @@ pixma_wait_interrupt (pixma_io_t * io, void *buf, unsigned size, int timeout)
|
||||||
#endif
|
#endif
|
||||||
error = map_error (sanei_usb_read_int (io->dev, buf, &count));
|
error = map_error (sanei_usb_read_int (io->dev, buf, &count));
|
||||||
}
|
}
|
||||||
if (error == PIXMA_EIO
|
if (error == PIXMA_EIO || error == PIXMA_EOF)
|
||||||
|| (io->interface == INT_USB && error == PIXMA_EOF))
|
|
||||||
error = PIXMA_ETIMEDOUT; /* FIXME: SANE doesn't have ETIMEDOUT!! */
|
error = PIXMA_ETIMEDOUT; /* FIXME: SANE doesn't have ETIMEDOUT!! */
|
||||||
if (error == 0)
|
if (error == 0)
|
||||||
error = count;
|
error = count;
|
||||||
|
|
Ładowanie…
Reference in New Issue