From e64bc764957dbf9895e50bec7f0876b6e9e6ee5c Mon Sep 17 00:00:00 2001 From: Kiril Zyapkov Date: Wed, 17 Jun 2020 11:51:31 +0300 Subject: [PATCH] idf_monitor: only mangle /dev/tty.* on Darwin --- tools/idf_monitor.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/idf_monitor.py b/tools/idf_monitor.py index 19c36f1315..c23e595f99 100755 --- a/tools/idf_monitor.py +++ b/tools/idf_monitor.py @@ -944,7 +944,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)