Merge pull request #6 from lagomorph/compilefix

Fix compilation error
This commit is contained in:
Yeo Kheng Meng
2018-03-30 13:14:27 +08:00
committed by GitHub

View File

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