mirror of
				https://github.com/mik3y/usb-serial-for-android
				synced 2025-10-31 10:27:27 +00:00 
			
		
		
		
	use correct control index for composite CDC devices with non-consecutive interface IDs (#477)
This commit is contained in:
		
							parent
							
								
									fd551970be
								
							
						
					
					
						commit
						083b9ae7fe
					
				| @ -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++; | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user