Fix a typo and update the doc comment for FirmataAdaptor.ServoConfig
Signed-off-by: Harley Laue <losinggeneration@gmail.com>
This commit is contained in:
parent
ab52d2bb8f
commit
f8be611424
|
@ -232,7 +232,7 @@ func TestServoConfig(t *testing.T) {
|
||||||
result error
|
result error
|
||||||
}{
|
}{
|
||||||
{
|
{
|
||||||
description: "Mix values for min & max",
|
description: "Min values for min & max",
|
||||||
arguments: [3]int{9, 0, 0},
|
arguments: [3]int{9, 0, 0},
|
||||||
expected: []byte{0xF0, 0x70, 9, 0, 0, 0, 0, 0xF7},
|
expected: []byte{0xF0, 0x70, 9, 0, 0, 0, 0, 0xF7},
|
||||||
},
|
},
|
||||||
|
|
|
@ -116,7 +116,7 @@ func (f *FirmataAdaptor) Port() string { return f.port }
|
||||||
// Name returns the FirmataAdaptors name
|
// Name returns the FirmataAdaptors name
|
||||||
func (f *FirmataAdaptor) Name() string { return f.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 {
|
func (f *FirmataAdaptor) ServoConfig(pin string, min, max int) error {
|
||||||
p, err := strconv.Atoi(pin)
|
p, err := strconv.Atoi(pin)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|
Loading…
Reference in New Issue