Skip to content

Commit

Permalink
drivers: fix some function names in comment (#1103)
Browse files Browse the repository at this point in the history
Signed-off-by: chuangjinglu <[email protected]>
  • Loading branch information
chuangjinglu authored Dec 5, 2024
1 parent b5f5ac6 commit 53d791a
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion drivers/ble/parrot/minidrone_driver.go
Original file line number Diff line number Diff line change
Expand Up @@ -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{
Expand Down
2 changes: 1 addition & 1 deletion drivers/i2c/bmp180_driver.go
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
4 changes: 2 additions & 2 deletions drivers/i2c/pcf8591_driver.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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.
Expand Down

0 comments on commit 53d791a

Please sign in to comment.