mirror of
https://github.com/hybridgroup/gobot.git
synced 2025-04-24 13:48:49 +08:00
drivers: fix some function names in comment (#1103)
Signed-off-by: chuangjinglu <chuangjinglu@outlook.com>
This commit is contained in:
parent
b5f5ac6dd8
commit
53d791a48a
@ -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{
|
||||
|
@ -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) {
|
||||
|
@ -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.
|
||||
|
Loading…
x
Reference in New Issue
Block a user