2 Commits

Author SHA1 Message Date
Yeo Kheng Meng
af1fa134cc Merge pull request #6 from lagomorph/compilefix
Fix compilation error
2018-03-30 13:14:27 +08:00
John Scarfone
812a55a381 make compile 2018-03-21 19:29:05 -04:00

View File

@@ -463,8 +463,8 @@ extension SerialPort {
} }
public func readChar() throws -> UnicodeScalar { public func readChar() throws -> UnicodeScalar {
let byteRead = readByte() let byteRead = try readByte()
let character = UnicodeScalar(buffer[0]) let character = UnicodeScalar(byteRead)
return character return character
} }