hllhll / USBProxy

A USB man in the middle device using USB On-The-Go, libUSB and gadgetFS
GNU General Public License v2.0
0 stars 0 forks source link

Transfer error - timeout (-7) altough everything works ok? #1

Open hllhll opened 8 years ago

hllhll commented 8 years ago

DeviceProxy_LibUSB.cpp:

function :receive_data case - USB_ENDPOINT_XFER_INT This version reports a timeout, alrough older version code had a hack that implies that a timeout is a "ok" response. Older version code:

 if (rc==LIBUSB_ERROR_TIMEOUT){free(*dataptr);*dataptr=NULL;*length=0;return;}
hllhll commented 8 years ago

Related line-comment https://github.com/dominicgs/USBProxy/commit/f05aea2827d9637507fa950cf10a08df4bd318bc#commitcomment-12921999