We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 46def99 + 6437959 commit d44fca6Copy full SHA for d44fca6
tools/idf_py_actions/tools.py
@@ -133,11 +133,8 @@ def get_default_serial_port() -> Any:
133
# ensured that pyserial has been installed
134
try:
135
import esptool
136
- import serial.tools.list_ports
137
138
- ports = list(sorted(p.device for p in serial.tools.list_ports.comports()))
139
- if sys.platform == 'darwin':
140
- ports = [port for port in ports if not port.endswith(('Bluetooth-Incoming-Port', 'wlan-debug'))]
+ ports = esptool.get_port_list()
141
# high baud rate could cause the failure of creation of the connection
142
esp = esptool.get_default_connected_device(
143
serial_list=ports, port=None, connect_attempts=4, initial_baud=115200
0 commit comments