[sane-devel] usb pipe stall handling?
Mon, 16 Dec 2002 23:39:13 +0100
On Mon, Dec 16, 2002 at 08:46:02PM +0100, Beat Birkhofer wrote:
> Who has (in theory) to handle pipe stalls? libusb or sane?
I have no idea. But it shouldn't harm to add
usb_clear_halt (devices[dn].libusb_handle, devices[dn].bulk_out_ep);
when write_size < 0, does it? Same for read.
> [Yes, I have pipe stalls on OSX]
If I understand the spec correctly, STALL is a permanent error (unlike
NAK). So you should find out, why it occurs :-)