8000 tools/pyboard.py: Support opening serial port in exclusive mode. by dpgeorge · Pull Request #7141 · micropython/micropython · GitHub
[go: up one dir, main page]

Skip to content

tools/pyboard.py: Support opening serial port in exclusive mode. #7141

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 23, 2021

Conversation

dpgeorge
Copy link
Member
@dpgeorge dpgeorge commented Apr 21, 2021

This is an alternative to #2256 which uses the new exclusive keyword arg in pyserial (supported in version 3.3 and above).

Exclusive mode is now the default, but can be overridden at the CLI by using --no-exclusive, or constructing Pyboard(..., exclusive=False).

TODO:

  • test on versions of pyserial < 3.3 -- works with pyserial=3.2
  • test on Windows -- works with Python 3.6.4 and pyserial==3.4
  • test on Mac -- works with Python 3.7.3 and pyserial==3.5

@dpgeorge dpgeorge added the tools Relates to tools/ directory in source, or other tooling label Apr 21, 2021
This is now the default, but can be overridden with CLI `--no-exclusive`,
or constructing `Pyboard(..., exclusive=False)`.

Signed-off-by: Damien George <damien@micropython.org>
@dpgeorge dpgeorge force-pushed the tools-pyboard-exclusive branch from 313460a to 178198a Compare April 23, 2021 12:41
@dpgeorge dpgeorge merged commit 178198a into micropython:master Apr 23, 2021
@dpgeorge dpgeorge deleted the tools-pyboard-exclusive branch April 23, 2021 13:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
tools Relates to tools/ directory in source, or other tooling
Projects
None yet
Development

Successfully merging this pull request may close these issues.

36F7
1 participant
0