kopia lustrzana https://github.com/mik3y/usb-serial-for-android
Porównaj commity
3 Commity
5db45548ba
...
9bd1f25773
Autor | SHA1 | Data |
---|---|---|
kai-morich | 9bd1f25773 | |
kai-morich | 083b9ae7fe | |
kai-morich | fd551970be |
|
@ -40,7 +40,7 @@ dependencyResolutionManagement {
|
|||
Add library to dependencies
|
||||
```gradle
|
||||
dependencies {
|
||||
implementation 'com.github.mik3y:usb-serial-for-android:3.4.6'
|
||||
implementation 'com.github.mik3y:usb-serial-for-android:3.5.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++;
|
||||
|
|
Ładowanie…
Reference in New Issue