From f8be611424dbbd4d59e9c20871e9d9d1faa66144 Mon Sep 17 00:00:00 2001 From: Harley Laue Date: Thu, 21 Jul 2016 02:57:49 -0700 Subject: [PATCH] Fix a typo and update the doc comment for FirmataAdaptor.ServoConfig Signed-off-by: Harley Laue --- platforms/firmata/client/client_test.go | 2 +- platforms/firmata/firmata_adaptor.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/platforms/firmata/client/client_test.go b/platforms/firmata/client/client_test.go index be72dbb30..fd4a175eb 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 6f0185d02..26b89792b 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 {