Libusbpp icon indicating copy to clipboard operation
Libusbpp copied to clipboard

Endpoints addresses assumed to be consecutively assigned

Open campbrd opened this issue 12 years ago • 1 comments

LibUSB::InterfaceImpl::getEndpoint() throws a logic_error exception if the index and endpoint number are not equal. This presents a problem communicating with my USB device, based on the Cypress cy7c68001 chip which only implements endpoints 2,4,6 and 8 in addition to 0. Shouldn't this configuration be handled in Libusbpp?

campbrd avatar Oct 12 '12 16:10 campbrd

There was an issue w/endpoint addresses - I had incorrectly made a few assumptions that gave me similar issues. This is probably one of them. Simply remove that logic_error and push, or I can do the same this afternoon.

zarthcode avatar Oct 29 '12 19:10 zarthcode