diff --git a/platforms/firmata/client/client_test.go b/platforms/firmata/client/client_test.go index be72dbb3..fd4a175e 100644 --- a/platforms/firmata/client/client_test.go +++ b/platforms/firmata/client/client_test.go @@ -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}, }, diff --git a/platforms/firmata/firmata_adaptor.go b/platforms/firmata/firmata_adaptor.go index 6f0185d0..26b89792 100644 --- a/platforms/firmata/firmata_adaptor.go +++ b/platforms/firmata/firmata_adaptor.go @@ -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 {