log.debug("setDevice " + this.mUsbDevice);
// find interface
mUsbConfiguration = mUsbDevice.getActiveUsbConfiguration();
UsbConfigurationDescriptor desc = mUsbConfiguration
.getUsbConfigurationDescriptor();
if (desc.bNumInterfaces() != 1) {
log.error("Could not find interface");
return;
}
mIntf = this.mUsbConfiguration.getUsbInterface((byte) 0);
// device should have two endpoints