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")
|
require("usb-device")
|
||||||
package("usb")
|
package("usb")
|
||||||
|
|
|
@ -123,6 +123,7 @@ class HIDInterface(Interface):
|
||||||
if not self.is_open():
|
if not self.is_open():
|
||||||
return False
|
return False
|
||||||
self.submit_xfer(self._int_ep, report_data)
|
self.submit_xfer(self._int_ep, report_data)
|
||||||
|
return True
|
||||||
|
|
||||||
def desc_cfg(self, desc, itf_num, ep_num, strs):
|
def desc_cfg(self, desc, itf_num, ep_num, strs):
|
||||||
# Add the standard interface descriptor
|
# Add the standard interface descriptor
|
||||||
|
|
Ładowanie…
Reference in New Issue