make compile

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

View File

@@ -463,9 +463,9 @@ 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
} }
} }