Porównaj commity

...

3 Commity

Autor SHA1 Wiadomość Data
kai-morich 9bd1f25773 version update in README 2023-03-15 07:47:48 +01:00
kai-morich 083b9ae7fe use correct control index for composite CDC devices with non-consecutive interface IDs (#477) 2023-03-15 07:47:27 +01:00
kai-morich fd551970be no code changes, just use normal line breaks 2023-03-15 07:47:08 +01:00
2 zmienionych plików z 35 dodań i 35 usunięć

Wyświetl plik

@ -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'
}
```

Wyświetl plik

@ -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++;