13 lines
613 B
Diff
13 lines
613 B
Diff
--- sane-backends-1.0.18/sanei/sanei_usb.c.usb_reset 2006-05-26 21:38:46.000000000 +0200
|
|
+++ sane-backends-1.0.18/sanei/sanei_usb.c 2007-06-15 15:16:50.000000000 +0200
|
|
@@ -1255,6 +1255,9 @@ sanei_usb_close (SANE_Int dn)
|
|
usb_resetep (devices[dn].libusb_handle, devices[dn].bulk_out_ep);
|
|
usb_resetep (devices[dn].libusb_handle, devices[dn].iso_in_ep);
|
|
#endif
|
|
+ /* Hack to work around hanging USB hardware */
|
|
+ usb_reset (devices[dn].libusb_handle);
|
|
+
|
|
usb_release_interface (devices[dn].libusb_handle,
|
|
devices[dn].interface_nr);
|
|
usb_close (devices[dn].libusb_handle);
|