Browse Source

Change default PORT for Max OSX

Lionello Lunesu 8 years ago
parent
commit
61b17b2d3d
1 changed files with 2 additions and 1 deletions
  1. 2 1
      nodemcu-uploader.py

+ 2 - 1
nodemcu-uploader.py

@@ -53,7 +53,8 @@ class MyMiniterm(Miniterm):
 
 class Uploader:
     BAUD = 9600
-    PORT = '/dev/ttyUSB0'
+    import platform
+    PORT = '/dev/tty.SLAB_USBtoUART' if platform.system() == 'Darwin' else '/dev/ttyUSB0'
     TIMEOUT = 5
 
     def expect(self, exp='> ', timeout=TIMEOUT):