Issue #53.
pull/73/head
mike wakerly 2014-03-19 21:51:09 -07:00
rodzic a331afaa1a
commit 61714523fc
1 zmienionych plików z 2 dodań i 1 usunięć

Wyświetl plik

@ -243,10 +243,11 @@ public class FtdiSerialDriver implements UsbSerialDriver {
if (mConnection != null) {
throw new IOException("Already open");
}
boolean opened = false;
try {
for (int i = 0; i < mDevice.getInterfaceCount(); i++) {
if (mConnection.claimInterface(mDevice.getInterface(i), true)) {
if (connection.claimInterface(mDevice.getInterface(i), true)) {
Log.d(TAG, "claimInterface " + i + " SUCCESS");
} else {
throw new IOException("Error claiming interface " + i);