Skip to content

Pass CLI timeout to auto-detected MicroBitSerial.get_serial - #3

Merged
blackteahamburger merged 1 commit into
masterfrom
codex/locate-issues-in-codebase-racoox
Feb 16, 2026
Merged

Pass CLI timeout to auto-detected MicroBitSerial.get_serial#3
blackteahamburger merged 1 commit into
masterfrom
codex/locate-issues-in-codebase-racoox

Conversation

@blackteahamburger

Copy link
Copy Markdown
Owner

Motivation

  • The CLI accepts a --timeout value but the auto-detection path did not forward args.timeout to MicroBitSerial.get_serial(), so discovery could ignore the configured timeout.

Description

  • Update _run_command to call MicroBitSerial.get_serial(timeout=args.timeout) when --serial is not provided.
  • Add tests to tests/test_main.py to assert the default timeout (10) is forwarded to discovery and that a custom timeout (e.g. --timeout 2.5) is also forwarded.
  • Files changed: microfs/main.py and tests/test_main.py.

Testing

  • Ran ruff check . which completed with no issues.
  • Ran pytest -q which returned 52 passed and exited successfully.

Codex Task

@blackteahamburger
blackteahamburger merged commit a330c60 into master Feb 16, 2026
13 checks passed
@blackteahamburger
blackteahamburger deleted the codex/locate-issues-in-codebase-racoox branch February 16, 2026 06:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant