20 lines
616 B
Diff
20 lines
616 B
Diff
https://sourceforge.net/p/gphoto/code/14268/
|
|
|
|
disable the default clear halt condition code.
|
|
|
|
this does not work on some USB 3 controllers.
|
|
|
|
--- a/camlibs/ptp2/library.c
|
|
+++ b/camlibs/ptp2/library.c
|
|
@@ -1730,7 +1730,9 @@
|
|
params = NULL;
|
|
camera->pl = NULL;
|
|
}
|
|
- if ((camera->port!=NULL) && (camera->port->type == GP_PORT_USB)) {
|
|
+ /* This code hangs USB 3 devices after the first bulk image transmission.
|
|
+ * For some unknown reason. */
|
|
+ if (0 && (camera->port!=NULL) && (camera->port->type == GP_PORT_USB)) {
|
|
/* clear halt */
|
|
gp_port_usb_clear_halt
|
|
(camera->port, GP_PORT_USB_ENDPOINT_IN);
|