Skip to content

Commit decfa48

Browse files
committed
connections.pybricks: increase wait time in PybricksHub.run()
Testing to see if this makes a difference in <#34>. In any case, it doesn't hurt to wait a bit longer.
1 parent edadef7 commit decfa48

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
88

99
## Changed
1010
- Changed dependency from `mpy-cross` to `mpy-cross-v5`.
11+
- Increased wait time when waiting for user program to start in `PybricksHub.run()`.
1112

1213
### Fixed
1314
- Fix syntax error on Python < 3.10 in `firmware` module.

pybricksdev/connections/pybricks.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -312,7 +312,7 @@ async def send_block(data: bytes) -> None:
312312
# for it to start
313313
try:
314314
await asyncio.wait_for(
315-
self.race_disconnect(user_program_running.get()), 0.2
315+
self.race_disconnect(user_program_running.get()), 1
316316
)
317317
except asyncio.TimeoutError:
318318
# if it doesn't start, assume it was a very short lived

0 commit comments

Comments
 (0)