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>
This commit is contained in:
parent
f1c6cb7725
commit
0264465585
|
@ -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}
|
||||
|
|
Loading…
Reference in New Issue