Skip to content

Commit

Permalink
Merge branch 'uraimo:master' into master
Browse files Browse the repository at this point in the history
  • Loading branch information
curuvar authored Dec 16, 2021
2 parents 38d51ee + 1754dc3 commit 48d0628
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Sources/1Wire.swift
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@
import Darwin.C
#endif

import Foundation

// MARK: - 1-Wire Presets
extension SwiftyGPIO {

Expand Down Expand Up @@ -98,7 +100,7 @@ public final class SysFSOneWire: OneWireInterface {
abort()
}
}
return String(cString: buffer)
return String(cString: buffer).trimmingCharacters(in: CharacterSet.newlines)
}

}
Expand Down

0 comments on commit 48d0628

Please sign in to comment.