From 20cf246eda1acc2039d1f1ac40c8a7bc524a8f20 Mon Sep 17 00:00:00 2001 From: Yeo Kheng Meng Date: Sat, 29 Oct 2016 21:15:58 +0800 Subject: [PATCH] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index efc7e0e..6911433 100644 --- a/README.md +++ b/README.md @@ -102,7 +102,7 @@ Then run `swift build` to download the dependencies and compile your project. Yo ```swift let serialPort: SerialPort = SerialPort(path: portName) ``` -Supply the portname that you wish to open like `/dev/ttyUSB0` or `/dev/tty.usbserial`. +Supply the portname that you wish to open like `/dev/ttyUSB0` or `/dev/cu.usbserial`. For Macs, this library currently only works with the `/dev/cu.*` ports instead of the `/dev/tty.*`. I have enabled blocking on the serial port to prevent high CPU usage which will prevent the `/dev/tty.*` from working. If there is an problem, open an issue describing your situation and let me look into it. ### Opening the Serial Port