forked from mirror/joycontrol
sub command enum cleanup
This commit is contained in:
+2
-2
@@ -60,10 +60,10 @@ class L2CAP_Transport(asyncio.Transport):
|
||||
return super().get_write_buffer_size()
|
||||
|
||||
async def write(self, data: Any) -> None:
|
||||
|
||||
if isinstance(data, bytes):
|
||||
_bytes = data
|
||||
elif isinstance(data, InputReport):
|
||||
# set timer byte of input report
|
||||
data.set_timer(self._input_report_timer)
|
||||
self._input_report_timer = (self._input_report_timer + 1) % 256
|
||||
_bytes = bytes(data)
|
||||
@@ -99,4 +99,4 @@ class L2CAP_Transport(asyncio.Transport):
|
||||
self._protocol = protocol
|
||||
|
||||
def get_protocol(self) -> asyncio.BaseProtocol:
|
||||
return self._protocol
|
||||
return self._protocol
|
||||
|
||||
Reference in New Issue
Block a user