use usb_interrupt_read instead of usb_bulk_read.

git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@9917 67ed7778-7388-44ab-90cf-0a291f65f57c
This commit is contained in:
Marcus Meissner
2007-01-20 20:32:01 +00:00
parent 0ef9fbf629
commit db6d9731fd
2 changed files with 6 additions and 2 deletions

View File

@@ -1,3 +1,8 @@
2007-01-20 Marcus Meissner <marcus@jet.franken.de>
* usb/libusb.c: Use usb_interrupt_read instead
of usb_bulk_read.
2006-09-09 Marcus Meissner <marcus@jet.franken.de>
* disk: Merged Solaris mount entry handling from

View File

@@ -267,7 +267,6 @@ gp_port_usb_open (GPPort *port)
port->settings.usb.interface, "sdc2xx, stv680, spca50x");
return GP_ERROR_IO_USB_CLAIM;
}
return GP_OK;
}
@@ -361,7 +360,7 @@ gp_port_usb_check_int (GPPort *port, char *bytes, int size, int timeout)
if (!port || !port->pl->dh || timeout < 0)
return GP_ERROR_BAD_PARAMETERS;
ret = usb_bulk_read(port->pl->dh, port->settings.usb.intep,
ret = usb_interrupt_read(port->pl->dh, port->settings.usb.intep,
bytes, size, timeout);
if (ret < 0)
return GP_ERROR_IO_READ;