Skip to content

Commit 62b3108

Browse files
authored
Update STM32SerialDriver.cs
Fix mismatched interface Id
1 parent 986ee84 commit 62b3108

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

UsbSerialForAndroid/driver/STM32SerialDriver.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ public override void Open(UsbDeviceConnection connection)
9595
{
9696
if (!mConnection.ClaimInterface(mControlInterface, true))
9797
throw new IOException("Could not claim control interface");
98-
(Driver as STM32SerialDriver).mCtrlInterf = i;
98+
(Driver as STM32SerialDriver).mCtrlInterf = mControlInterface.Id;
9999
controlInterfaceFound = true;
100100
break;
101101
}

0 commit comments

Comments
 (0)