Skip to content

Commit

Permalink
Merge pull request #374 from mik3y/ft2232c
Browse files Browse the repository at this point in the history
restore FT2232C support
  • Loading branch information
kai-morich authored Jul 1, 2021
2 parents c73c38c + 7ffbc73 commit 4e0a6d6
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ buildscript {
google()
}
dependencies {
classpath 'com.android.tools.build:gradle:4.2.0'
classpath 'com.android.tools.build:gradle:4.2.2'
}
}

Expand Down
2 changes: 1 addition & 1 deletion usbSerialExamples/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,6 @@ android {

dependencies {
implementation project(':usbSerialForAndroid')
implementation 'androidx.appcompat:appcompat:1.2.0'
implementation 'androidx.appcompat:appcompat:1.3.0'
implementation 'com.google.android.material:material:1.3.0'
}
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,8 @@ protected void openInt(UsbDeviceConnection connection) throws IOException {
throw new IOException("Could not get device descriptors");
}
int deviceType = rawDescriptors[13];
baudRateWithPort = deviceType == 7 || deviceType == 8 || deviceType == 9; // ...H devices
baudRateWithPort = deviceType == 7 || deviceType == 8 || deviceType == 9 // ...H devices
|| mDevice.getInterfaceCount() > 1; // FT2232C
}

@Override
Expand Down

0 comments on commit 4e0a6d6

Please sign in to comment.