kopia lustrzana https://gitlab.com/sane-project/backends
EOF isn't an usb timeout error
- this fixes usb communication problems e.g. with OpenSuse - revoke parts ofmerge-requests/1/head3c5cc2a
andcea03f3
rodzic
b331cd5bbc
commit
3133c5e17a
|
@ -575,7 +575,7 @@ pixma_wait_interrupt (pixma_io_t * io, void *buf, unsigned size, int timeout)
|
|||
#endif
|
||||
error = map_error (sanei_usb_read_int (io->dev, buf, &count));
|
||||
}
|
||||
if (error == PIXMA_EIO || error == PIXMA_EOF)
|
||||
if (error == PIXMA_EIO /*|| error == PIXMA_EOF*/) /* EOF isn't an error! */
|
||||
error = PIXMA_ETIMEDOUT; /* FIXME: SANE doesn't have ETIMEDOUT!! */
|
||||
if (error == 0)
|
||||
error = count;
|
||||
|
|
Ładowanie…
Reference in New Issue