Skip to content
This repository has been archived by the owner on Jan 27, 2024. It is now read-only.

Commit

Permalink
Merge pull request #6 from lagomorph/compilefix
Browse files Browse the repository at this point in the history
Fix compilation error
  • Loading branch information
yeokm1 authored Mar 30, 2018
2 parents 41ddf02 + 812a55a commit af1fa13
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Sources/SwiftSerial.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

}
Expand Down

0 comments on commit af1fa13

Please sign in to comment.