Skip to content

Commit 7ea0413

Browse files
Fix write cmd recipient.
1 parent 2dcbd85 commit 7ea0413

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

UsbBluetooth/LibUsbHelpers/LibUsbBluetoothEndpointsHelper.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ internal static int WriteBluetoothCommandControlTransfer(this IUsbDevice dev, Us
2929
{
3030
if (bytes == null)
3131
return 0;
32-
UsbSetupPacket usbSetupPacket = new UsbSetupPacket((byte)(UsbCtrlFlags.Direction_Out | UsbCtrlFlags.RequestType_Class | UsbCtrlFlags.Recipient_Interface), 0, 0, interfaceInfo.Number, bytes.Length);
32+
UsbSetupPacket usbSetupPacket = new UsbSetupPacket((byte)(UsbCtrlFlags.Direction_Out | UsbCtrlFlags.RequestType_Class | UsbCtrlFlags.Recipient_Device), 0, 0, interfaceInfo.Number, bytes.Length);
3333
return dev.ControlTransfer(usbSetupPacket, bytes, 0, bytes.Length);
3434
}
3535

0 commit comments

Comments
 (0)