mirror of
https://github.com/espressif/esp-idf.git
synced 2025-08-03 04:34:31 +02:00
Merge branch 'bugfix/dev_tty_cu_darwin_only_pr5462' into 'master'
idf_monitor: only mangle /dev/tty.* on Darwin Closes IDFGH-3507 See merge request espressif/esp-idf!10169
This commit is contained in:
@@ -995,7 +995,7 @@ def main():
|
||||
args.port = args.port.replace('COM', r'\\.\COM')
|
||||
yellow_print("--- WARNING: GDB cannot open serial ports accessed as COMx")
|
||||
yellow_print("--- Using %s instead..." % args.port)
|
||||
elif args.port.startswith("/dev/tty."):
|
||||
elif args.port.startswith("/dev/tty.") and sys.platform == 'darwin':
|
||||
args.port = args.port.replace("/dev/tty.", "/dev/cu.")
|
||||
yellow_print("--- WARNING: Serial ports accessed as /dev/tty.* will hang gdb if launched.")
|
||||
yellow_print("--- Using %s instead..." % args.port)
|
||||
|
Reference in New Issue
Block a user