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
Hyx 2025-08-01 12:53:01 +08:00 zatwierdzone przez Damien George
rodzic ea763cad8d
commit bdc4706cc7
2 zmienionych plików z 2 dodań i 1 usunięć

Wyświetl plik

@ -1,3 +1,3 @@
metadata(version="0.1.0")
metadata(version="0.1.1")
require("usb-device")
package("usb")

Wyświetl plik

@ -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