Set baudrate, add mock serial struct to test with.
This commit is contained in:
@@ -7,4 +7,5 @@ public protocol LidarSerial {
|
||||
func openPort() throws;
|
||||
func readData(ofLength: Int) throws -> Data;
|
||||
func writeData(_ data: Data) throws -> Int;
|
||||
func setBaudrate(baudrate: Int)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user