mirror of
https://github.com/mik3y/usb-serial-for-android.git
synced 2026-08-11 08:22:52 +00:00
use correct control index for composite CDC devices with non-consecutive interface IDs (#477)
This commit is contained in:
+1
-1
@@ -150,7 +150,7 @@ public class CdcAcmSerialDriver implements UsbSerialDriver {
|
||||
UsbInterface usbInterface = mDevice.getInterface(i);
|
||||
if (usbInterface.getInterfaceClass() == UsbConstants.USB_CLASS_COMM) {
|
||||
if(controlInterfaceCount == mPortNumber) {
|
||||
mControlIndex = i;
|
||||
mControlIndex = usbInterface.getId();
|
||||
mControlInterface = usbInterface;
|
||||
}
|
||||
controlInterfaceCount++;
|
||||
|
||||
Reference in New Issue
Block a user