From: Jose M R. <rob...@gm...> - 2011-10-05 14:19:20
|
But the hangs occurs before, in usb_claim_interface(). 2011/10/5 Xiaofan Chen <xia...@gm...> > On Wed, Oct 5, 2011 at 10:00 PM, Jose M Robles <rob...@gm...> wrote: > > // Hang... > > usb_interrupt_read(dev, 0x81, buff, sizeof(buff),0); > > ... > > Hmm, I think this is normal behavior. You have set the timeout to > infinite (0 is infinite for libusb-win32 1.2.5.0 version to be consistent > with libusb under Linux) and I believe the interrupt read will only > return after you press a button. > > So I do not see any problems here. You can try to setup the > time out to be other value and see if that returns or not. > > > > -- > Xiaofan > -- Jose M. Robles Hermoso Google+: http://gplus.to/jmr Twitter: twitter.com/jmrobles Blog: http://www.robleshermoso.com AboutMe: http://about.me/roblesjm |