Skip to content

Commit

Permalink
Move comments to initializers
Browse files Browse the repository at this point in the history
  • Loading branch information
Shinichiro Oba committed Jul 5, 2019
1 parent 2c1f1ef commit 3411b0e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
3 changes: 2 additions & 1 deletion Sources/BoostBLEKit/Command/MotorStartPowerCommand.swift
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,9 @@ import Foundation
public struct MotorStartPowerCommand: Command {

public let portId: PortId
public let power: Int8 // 0: FLOAT, 127: BRAKE
public let power: Int8

/// power: 0 = FLOAT, 127 = BRAKE
public init(portId: PortId, power: Int8) {
self.portId = portId
self.power = power
Expand Down
5 changes: 3 additions & 2 deletions Sources/BoostBLEKit/Command/MotorStartSpeedCommand.swift
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,11 @@ import Foundation
public struct MotorStartSpeedCommand: Command {

public let portId: PortId
public let speed: Int8 // 0: HOLD
public let speed: Int8
public let maxPower: UInt8

public init(portId: PortId, speed: Int8, maxPower: UInt8 = 0x64) {
/// speed: 0 = HOLD
public init(portId: PortId, speed: Int8, maxPower: UInt8 = 100) {
self.portId = portId
self.speed = speed
self.maxPower = maxPower
Expand Down

0 comments on commit 3411b0e

Please sign in to comment.