Skip to content

Commit e94d07f

Browse files
Fix write cmd recipient.
1 parent 3757a2e commit e94d07f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/usbbluetooth/controller.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ def write(self, data: bytearray) -> int:
127127
request_type = usb.util.build_request_type(
128128
usb.util.CTRL_OUT,
129129
usb.util.CTRL_TYPE_CLASS,
130-
usb.util.CTRL_RECIPIENT_INTERFACE,
130+
usb.util.CTRL_RECIPIENT_DEVICE,
131131
)
132132
sent_bytes = self._dev.ctrl_transfer(
133133
bmRequestType=request_type,

0 commit comments

Comments
 (0)