[sane-devel] usb_set_configuration in sanei_usb_open (for OSX)
Sun, 15 Dec 2002 12:29:27 +0100
On Sun, Dec 15, 2002 at 04:51:46AM +0100, Beat Birkhofer wrote:
> IMHO in sanei_usb.c in sanei_usb_open() in the libusb part there's
> missing something above the usb_claim_interface():
> result = usb_set_configuration (devices[devcount].libusb_handle, 0);
> [Not sure about the '0', but libusb doen't provide an easy way to
> count the configs.]
You are right. I didn't add the configuration stuff because there was
a note somewhere in the code that it isn't necessary. Maybe that was
only true for Linux.
I'll add a call:
The check for interfaces and alt settings needs some work, too.