From 48ab0eecfb3e06f85f3f9b1d4bef6d4f75a56275 Mon Sep 17 00:00:00 2001 From: Laurens Valk Date: Sat, 10 Apr 2021 14:15:14 +0200 Subject: [PATCH] connections: Wait for output. The user program stopped signal can come in sooner than the last piece of output, so give it some extra time. --- pybricksdev/connections.py | 1 + 1 file changed, 1 insertion(+) diff --git a/pybricksdev/connections.py b/pybricksdev/connections.py index 4571108..1e4dd6b 100644 --- a/pybricksdev/connections.py +++ b/pybricksdev/connections.py @@ -760,3 +760,4 @@ async def run(self, py_path, wait=True, print_output=True): if wait: await self.user_program_stopped.wait() + await asyncio.sleep(0.3)