From 25117e2e13d058081eac8733b1c515cbe3736396 Mon Sep 17 00:00:00 2001 From: chuangjinglu Date: Mon, 25 Nov 2024 11:02:11 +0800 Subject: [PATCH] drivers: fix some function names in comment Signed-off-by: chuangjinglu --- drivers/ble/parrot/minidrone_driver.go | 2 +- drivers/i2c/bmp180_driver.go | 2 +- drivers/i2c/pcf8591_driver.go | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/ble/parrot/minidrone_driver.go b/drivers/ble/parrot/minidrone_driver.go index 4dee03ef5..8bad9b7e4 100644 --- a/drivers/ble/parrot/minidrone_driver.go +++ b/drivers/ble/parrot/minidrone_driver.go @@ -80,7 +80,7 @@ type Pcmd struct { Psi float32 } -// NewDriver creates a Parrot Minidrone Driver +// NewMinidroneDriver creates a Parrot Minidrone Driver func NewMinidroneDriver(a gobot.BLEConnector, opts ...ble.OptionApplier) *MinidroneDriver { d := &MinidroneDriver{ Pcmd: Pcmd{ diff --git a/drivers/i2c/bmp180_driver.go b/drivers/i2c/bmp180_driver.go index 62abcfe9d..605fef98e 100644 --- a/drivers/i2c/bmp180_driver.go +++ b/drivers/i2c/bmp180_driver.go @@ -82,7 +82,7 @@ func NewBMP180Driver(c Connector, options ...func(Config)) *BMP180Driver { return d } -// WithBMP180oversampling option sets oversampling mode. +// WithBMP180OversamplingMode option sets oversampling mode. // Valid settings are of type "BMP180OversamplingMode" func WithBMP180OversamplingMode(val BMP180OversamplingMode) func(Config) { return func(c Config) { diff --git a/drivers/i2c/pcf8591_driver.go b/drivers/i2c/pcf8591_driver.go index f5d2b9469..45b089f88 100644 --- a/drivers/i2c/pcf8591_driver.go +++ b/drivers/i2c/pcf8591_driver.go @@ -132,7 +132,7 @@ func NewPCF8591Driver(c Connector, options ...func(Config)) *PCF8591Driver { return p } -// WithPCF8591With400kbitStabilisation option sets the PCF8591 additionalReadWrite and additionalRead value +// WithPCF8591With400kbitStabilization option sets the PCF8591 additionalReadWrite and additionalRead value func WithPCF8591With400kbitStabilization(additionalReadWrite, additionalRead int) func(Config) { return func(c Config) { p, ok := c.(*PCF8591Driver) @@ -154,7 +154,7 @@ func WithPCF8591With400kbitStabilization(additionalReadWrite, additionalRead int } } -// WithPCF8591ForceWrite option modifies the PCF8591Driver forceRefresh option +// WithPCF8591ForceRefresh option modifies the PCF8591Driver forceRefresh option // Setting to true (1) will force refresh operation to register, although there is no change. // Normally this is not needed, so default is off (0). // When there is something flaky, there is a small chance to stabilize by setting this flag to true.