소스 검색

make compile

John Scarfone 8 년 전
부모
커밋
812a55a381
1개의 변경된 파일3개의 추가작업 그리고 3개의 파일을 삭제
  1. 3 3
      Sources/SwiftSerial.swift

+ 3 - 3
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
     }
    
 }