Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

drivers: fix some function names in comment #1103

Merged
merged 1 commit into from
Dec 5, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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