Skip to content

Commit ba20fd8

Browse files
committed
Merge branch 'feat/add_filtered_port' into 'master'
feat(port_detection): Filter out debug console serial port on MacOS See merge request espressif/esp-idf-monitor!98
2 parents 3ccd4ce + 931856d commit ba20fd8

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

esp_idf_monitor/base/constants.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,4 +73,4 @@
7373
HIGH = False
7474

7575
# Port names to filter out
76-
FILTERED_PORTS = ('Bluetooth-Incoming-Port', 'wlan-debug')
76+
FILTERED_PORTS = ('Bluetooth-Incoming-Port', 'wlan-debug', 'cu.debug-console')

esp_idf_monitor/idf_monitor.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -342,7 +342,8 @@ def detect_port() -> Union[str, NoReturn]:
342342
]
343343
port: str = port_list[-1].device
344344
# keep the `/dev/ttyUSB0` default port on linux if connected
345-
# TODO: This can be removed in next major release
345+
# TODO: This can be removed in next major release and some
346+
# ports can be prioritized like in esptool and ESP-IDF
346347
if sys.platform == 'linux':
347348
for p in port_list:
348349
if p.device == '/dev/ttyUSB0':

0 commit comments

Comments
 (0)