diff options
author | Damien George <damien@micropython.org> | 2023-05-04 12:12:29 +1000 |
---|---|---|
committer | Damien George <damien@micropython.org> | 2023-05-04 12:12:29 +1000 |
commit | 0264465585ba10e80bb8ade5b3df2979363d53d0 (patch) | |
tree | b2c4fd99642346bb1d6724fa356b9b89b4d11506 /tools/pyboard.py | |
parent | f1c6cb7725960487195daa5c5c196fd8d3563811 (diff) | |
download | micropython-0264465585ba10e80bb8ade5b3df2979363d53d0.tar.gz micropython-0264465585ba10e80bb8ade5b3df2979363d53d0.zip |
tools/pyboard.py: Import serial.tools.list_ports.
This import is needed by newer versions of pyserial.
Signed-off-by: Damien George <damien@micropython.org>
Diffstat (limited to 'tools/pyboard.py')
-rwxr-xr-x | tools/pyboard.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/pyboard.py b/tools/pyboard.py index 10cb764b91..c5c12c95b7 100755 --- a/tools/pyboard.py +++ b/tools/pyboard.py @@ -277,6 +277,7 @@ class Pyboard: self.serial = TelnetToSerial(device, user, password, read_timeout=10) else: import serial + import serial.tools.list_ports # Set options, and exclusive if pyserial supports it serial_kwargs = {"baudrate": baudrate, "interCharTimeout": 1} |