make compile

This commit is contained in:
John Scarfone
2018-03-21 19:29:05 -04:00
parent 41ddf0247a
commit 812a55a381

View File

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