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}