From 4e1fce3db4fed4b61d52c45d75fac3887f68965e Mon Sep 17 00:00:00 2001 From: Marcus Meissner Date: Thu, 21 Mar 2002 17:52:06 +0000 Subject: [PATCH] * usb/libusb.c: Remember we did the altsetting after we did change it. git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@4305 67ed7778-7388-44ab-90cf-0a291f65f57c --- libgphoto2_port/ChangeLog | 1 + libgphoto2_port/usb/libusb.c | 1 + 2 files changed, 2 insertions(+) diff --git a/libgphoto2_port/ChangeLog b/libgphoto2_port/ChangeLog index 5b8159c8e..517099127 100644 --- a/libgphoto2_port/ChangeLog +++ b/libgphoto2_port/ChangeLog @@ -4,6 +4,7 @@ Also look for intep in class based matching. Dump intep in debugoutput. interrupt endpoints are *input* endpoints, not output. + Remember we did the altsetting after we did change it. 2002-03-19 Marcus Meissner diff --git a/libgphoto2_port/usb/libusb.c b/libgphoto2_port/usb/libusb.c index 31fbc6753..f8b157bb5 100644 --- a/libgphoto2_port/usb/libusb.c +++ b/libgphoto2_port/usb/libusb.c @@ -324,6 +324,7 @@ gp_port_usb_update (GPPort *port) "Changed usb.altsetting from %d to %d", port->pl->altsetting, port->settings.usb.altsetting); + port->pl->altsetting = port->settings.usb.altsetting; } return GP_OK;