Make more things public...
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
import Foundation
|
||||
|
||||
protocol LidarSerial {
|
||||
public protocol LidarSerial {
|
||||
var dtr: Bool {get set};
|
||||
var inWaiting: Int {get};
|
||||
func closePort() -> Void;
|
||||
|
||||
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user