Fix segfault due to using wrong opts struct
This commit is contained in:
parent
d5c893b9d1
commit
8f4bb3e226
@ -64,7 +64,7 @@ func Connect(opts *Options) (*Device, error) {
|
||||
// If such device does not exist
|
||||
if errors.Is(err, ErrNoDevices) {
|
||||
// Attempt to pair device
|
||||
dev, err = pair(dev.opts.PairTimeout)
|
||||
dev, err = pair(opts.PairTimeout)
|
||||
}
|
||||
if err != nil {
|
||||
return nil, err
|
||||
|
Reference in New Issue
Block a user