Skip to content

Commit 6e46847

Browse files
committed
usb-device-hid: Return True after submit_xfer.
This tells the caller that no error has occurred. The child classes can use this state to do double buffering correctly. If any fundamental error occurs in submit_xfer, the underlying code will raise an exception. Signed-off-by: Hyx <[email protected]>
1 parent 685160a commit 6e46847

File tree

1 file changed

+1
-0
lines changed
  • micropython/usb/usb-device-hid/usb/device

1 file changed

+1
-0
lines changed

micropython/usb/usb-device-hid/usb/device/hid.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,7 @@ def send_report(self, report_data, timeout_ms=100):
123123
if not self.is_open():
124124
return False
125125
self.submit_xfer(self._int_ep, report_data)
126+
return True
126127

127128
def desc_cfg(self, desc, itf_num, ep_num, strs):
128129
# Add the standard interface descriptor

0 commit comments

Comments
 (0)