remove nonblock flag to prevent massive cpu usage during reading. Will require use of /dev/cu.* only
This commit is contained in:
@@ -248,7 +248,7 @@ public class SerialPort {
|
|||||||
#if os(Linux)
|
#if os(Linux)
|
||||||
fileDescriptor = open(path, readWriteParam | O_NOCTTY)
|
fileDescriptor = open(path, readWriteParam | O_NOCTTY)
|
||||||
#elseif os(OSX)
|
#elseif os(OSX)
|
||||||
fileDescriptor = open(path, readWriteParam | O_NOCTTY | O_EXLOCK | O_NONBLOCK)
|
fileDescriptor = open(path, readWriteParam | O_NOCTTY | O_EXLOCK)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
// Throw error if open() failed
|
// Throw error if open() failed
|
||||||
|
|||||||
Reference in New Issue
Block a user