This commit is contained in:
Robert Martin
2020-01-29 00:38:39 +09:00
parent 4a38e26c9d
commit b2187e297f
2 changed files with 1 additions and 286 deletions
+1 -2
View File
@@ -64,10 +64,9 @@ async def send_empty_input_reports(transport):
async def main():
transport, protocol = await create_hid_server(controller_protocol_factory(Controller.JOYCON_L), 17, 19)
# send some empty input reports until the switch decides to reply
future = asyncio.ensure_future(send_empty_input_reports(transport))
await protocol.wait_for_output_report()
future.cancel()
try:
await future