El Tue, 18 Dec 2007 13:30:48 +0000 Daniel Drake <[EMAIL PROTECTED]> escribió:
> Gustavo Chain wrote: > >> Instead you should be using something like: 1 | USB_ENDPOINT_IN > >> > > that endpoint was taken from the /instrumentation/ of libusb, I've > > tried with 1 | USB_ENDPOINT_IN and is not working. > > There's nothing wrong with your code, this is just nitpicking of > using a constant in a place where it is not relevant :) > > Your instrumentation will have given you a number, in this case 0x01. > I'm not saying that number is wrong, but I'm saying that your choice > of using the USB_ENDPOINT_TYPE_ISOCHRONOUS constant to represent that > is not appropriate. That constant should not be used in this context > - it just doesn't work like that. Endpoint addresses are made up of a > number and a direction, their addresses does not specify their type. > > My 1|IN suggestion was just an example, in this case you want 1|OUT > which still gives you the correct value of 0x01. I'm sure you can > figure out how to address the other endpoints in this style too :) > > Thanks, > Daniel Now I get your point. -- Gustavo ChaĆn Dumit http://0xff.cl _______________________________________________ fprint mailing list [email protected] http://lists.reactivated.net/mailman/listinfo/fprint
