From 812a55a3817d5d7672c88c81297b8fd3623ab15a Mon Sep 17 00:00:00 2001 From: John Scarfone Date: Wed, 21 Mar 2018 19:29:05 -0400 Subject: [PATCH] make compile --- Sources/SwiftSerial.swift | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Sources/SwiftSerial.swift b/Sources/SwiftSerial.swift index 3a8b33a..e6f24ad 100644 --- a/Sources/SwiftSerial.swift +++ b/Sources/SwiftSerial.swift @@ -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 } }