1
0
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:
chuangjinglu 2024-12-06 01:29:23 +08:00 committed by GitHub
parent b5f5ac6dd8
commit 53d791a48a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 4 additions and 4 deletions

View File

@ -80,7 +80,7 @@ type Pcmd struct {
Psi float32 Psi float32
} }
// NewDriver creates a Parrot Minidrone Driver // NewMinidroneDriver creates a Parrot Minidrone Driver
func NewMinidroneDriver(a gobot.BLEConnector, opts ...ble.OptionApplier) *MinidroneDriver { func NewMinidroneDriver(a gobot.BLEConnector, opts ...ble.OptionApplier) *MinidroneDriver {
d := &MinidroneDriver{ d := &MinidroneDriver{
Pcmd: Pcmd{ Pcmd: Pcmd{

View File

@ -82,7 +82,7 @@ func NewBMP180Driver(c Connector, options ...func(Config)) *BMP180Driver {
return d return d
} }
// WithBMP180oversampling option sets oversampling mode. // WithBMP180OversamplingMode option sets oversampling mode.
// Valid settings are of type "BMP180OversamplingMode" // Valid settings are of type "BMP180OversamplingMode"
func WithBMP180OversamplingMode(val BMP180OversamplingMode) func(Config) { func WithBMP180OversamplingMode(val BMP180OversamplingMode) func(Config) {
return func(c Config) { return func(c Config) {

View File

@ -132,7 +132,7 @@ func NewPCF8591Driver(c Connector, options ...func(Config)) *PCF8591Driver {
return p 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) { func WithPCF8591With400kbitStabilization(additionalReadWrite, additionalRead int) func(Config) {
return func(c Config) { return func(c Config) {
p, ok := c.(*PCF8591Driver) 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. // 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). // 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. // When there is something flaky, there is a small chance to stabilize by setting this flag to true.