python
python copied to clipboard
Duplicate port selection
On a MAC Catalina 10.15.7 when connecting a Heltec 2.0 device I see:
crw-rw-rw- 1 root wheel 18, 4 May 5 07:57 /dev/tty.SLAB_USBtoUART crw-rw-rw- 1 root wheel 18, 6 May 5 07:57 /dev/tty.usbserial-0001
The code selects tty.usbserial-0001, which errors to "Device Busy". However the tty.SLAB_USBtoUART works fine.
Workaround: run meshtastic CLI as: % meshtastic --port /dev/tty.SLAB_USBtoUART .......
(Unrelated: As regards firmware upload, change platformio.ini to include port information or for esptool, set env variable ESPTOOL_PORT)