Skip to content

Commit

Permalink
Fix a typo and update the doc comment for FirmataAdaptor.ServoConfig
Browse files Browse the repository at this point in the history
Signed-off-by: Harley Laue <[email protected]>
  • Loading branch information
losinggeneration committed Jul 27, 2016
1 parent ab52d2b commit f8be611
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion platforms/firmata/client/client_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ func TestServoConfig(t *testing.T) {
result error
}{
{
description: "Mix values for min & max",
description: "Min values for min & max",
arguments: [3]int{9, 0, 0},
expected: []byte{0xF0, 0x70, 9, 0, 0, 0, 0, 0xF7},
},
Expand Down
2 changes: 1 addition & 1 deletion platforms/firmata/firmata_adaptor.go
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ func (f *FirmataAdaptor) Port() string { return f.port }
// Name returns the FirmataAdaptors name
func (f *FirmataAdaptor) Name() string { return f.name }

// ServoConfig sets the PWM minimum and maximum for a pin
// ServoConfig sets the pulse width in microseconds for a pin attached to a servo
func (f *FirmataAdaptor) ServoConfig(pin string, min, max int) error {
p, err := strconv.Atoi(pin)
if err != nil {
Expand Down

0 comments on commit f8be611

Please sign in to comment.