From f9162d07ca64c8265e389d99e4722245c2372098 Mon Sep 17 00:00:00 2001 From: Piv <18462828+Piv200@users.noreply.github.com> Date: Thu, 9 Jul 2020 20:20:59 +0930 Subject: [PATCH] Make more things public... --- Sources/SwiftRPLidar/LidarSerial.swift | 2 +- Sources/SwiftRPLidar/SwiftRPLidar.swift | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Sources/SwiftRPLidar/LidarSerial.swift b/Sources/SwiftRPLidar/LidarSerial.swift index 80f9811..1aa44b3 100644 --- a/Sources/SwiftRPLidar/LidarSerial.swift +++ b/Sources/SwiftRPLidar/LidarSerial.swift @@ -1,6 +1,6 @@ import Foundation -protocol LidarSerial { +public protocol LidarSerial { var dtr: Bool {get set}; var inWaiting: Int {get}; func closePort() -> Void; diff --git a/Sources/SwiftRPLidar/SwiftRPLidar.swift b/Sources/SwiftRPLidar/SwiftRPLidar.swift index 7869ad8..a2785d4 100644 --- a/Sources/SwiftRPLidar/SwiftRPLidar.swift +++ b/Sources/SwiftRPLidar/SwiftRPLidar.swift @@ -63,7 +63,7 @@ public class SwiftRPLidar { private var motorRunning = false - init(onPort serialPort: LidarSerial) throws { + public init(onPort serialPort: LidarSerial) throws { self.serialPort = serialPort try connect() try startMotor()