kopia lustrzana https://github.com/micropython/micropython-lib
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>pull/1035/head
rodzic
ea763cad8d
commit
bdc4706cc7
|
@ -1,3 +1,3 @@
|
|||
metadata(version="0.1.0")
|
||||
metadata(version="0.1.1")
|
||||
require("usb-device")
|
||||
package("usb")
|
||||
|
|
|
@ -123,6 +123,7 @@ class HIDInterface(Interface):
|
|||
if not self.is_open():
|
||||
return False
|
||||
self.submit_xfer(self._int_ep, report_data)
|
||||
return True
|
||||
|
||||
def desc_cfg(self, desc, itf_num, ep_num, strs):
|
||||
# Add the standard interface descriptor
|
||||
|
|
Ładowanie…
Reference in New Issue