Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit bdc4706

Browse files
hyx0329dpgeorge
authored andcommitted
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 <hyx0329@outlook.com>
1 parent ea763ca commit bdc4706

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
metadata(version="0.1.0")
1+
metadata(version="0.1.1")
22
require("usb-device")
33
package("usb")

‎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)

AltStyle によって変換されたページ (->オリジナル) /