Browse Source

idf_monitor: only mangle /dev/tty.* on Darwin

Kiril Zyapkov 5 years ago
parent
commit
e64bc76495
1 changed files with 1 additions and 1 deletions
  1. 1 1
      tools/idf_monitor.py

+ 1 - 1
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)