From 0264465585ba10e80bb8ade5b3df2979363d53d0 Mon Sep 17 00:00:00 2001 From: Damien George Date: Thu, 4 May 2023 12:12:29 +1000 Subject: [PATCH] tools/pyboard.py: Import serial.tools.list_ports. This import is needed by newer versions of pyserial. Signed-off-by: Damien George --- tools/pyboard.py | 1 + 1 file changed, 1 insertion(+) 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}