Skip to content

Commit 88b7942

Browse files
authored
Update FtdiSerialDriver.cs
Set the driver of the port correctly so that the permission request works. Otherwise, `Driver` would remain null. Verified in the debugger.
1 parent 7617f5e commit 88b7942

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

UsbSerialForAndroid/driver/FtdiSerialDriver.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ public FtdiSerialDriver(UsbDevice device)
5959

6060
for (int port = 0; port < device.InterfaceCount; port++)
6161
{
62-
mPorts.Add(new FtdiSerialPort(mDevice, port));
62+
mPorts.Add(new FtdiSerialPort(mDevice, port, this));
6363
}
6464
}
6565

@@ -497,4 +497,4 @@ public static Dictionary<int, int[]> GetSupportedDevices()
497497
};
498498
}
499499
}
500-
}
500+
}

0 commit comments

Comments
 (0)