remove nonblock flag to prevent massive cpu usage during reading. Will require use of /dev/cu.* only

This commit is contained in:
Yeo Kheng Meng
2016-10-29 21:11:40 +08:00
parent 816720e15c
commit 02e0d4837e

View File

@@ -248,7 +248,7 @@ public class SerialPort {
#if os(Linux)
fileDescriptor = open(path, readWriteParam | O_NOCTTY)
#elseif os(OSX)
fileDescriptor = open(path, readWriteParam | O_NOCTTY | O_EXLOCK | O_NONBLOCK)
fileDescriptor = open(path, readWriteParam | O_NOCTTY | O_EXLOCK)
#endif
// Throw error if open() failed