kopia lustrzana https://github.com/micropython/micropython
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>pull/10850/head
rodzic
f1c6cb7725
commit
0264465585
|
@ -277,6 +277,7 @@ class Pyboard:
|
||||||
self.serial = TelnetToSerial(device, user, password, read_timeout=10)
|
self.serial = TelnetToSerial(device, user, password, read_timeout=10)
|
||||||
else:
|
else:
|
||||||
import serial
|
import serial
|
||||||
|
import serial.tools.list_ports
|
||||||
|
|
||||||
# Set options, and exclusive if pyserial supports it
|
# Set options, and exclusive if pyserial supports it
|
||||||
serial_kwargs = {"baudrate": baudrate, "interCharTimeout": 1}
|
serial_kwargs = {"baudrate": baudrate, "interCharTimeout": 1}
|
||||||
|
|
Ładowanie…
Reference in New Issue