mirror of
https://github.com/bettercap/bettercap
synced 2025-08-14 02:36:57 -07:00
misc: small fix or general refactoring i did not bother commenting
This commit is contained in:
parent
8ac2c0163b
commit
9dd6145a39
1 changed files with 1 additions and 6 deletions
|
@ -166,12 +166,7 @@ func (mod *BLERecon) Configure() (err error) {
|
|||
golog.SetFlags(0)
|
||||
golog.SetOutput(dummyWriter{mod})
|
||||
|
||||
options := []gatt.Option{
|
||||
gatt.LnxMaxConnections(255),
|
||||
gatt.LnxDeviceID(mod.deviceId, true),
|
||||
}
|
||||
|
||||
if mod.gattDevice, err = gatt.NewDevice(options...); err != nil {
|
||||
if mod.gattDevice, err = gatt.NewDevice(defaultBLEClientOptions...); err != nil {
|
||||
mod.Debug("error while creating new gatt device: %v", err)
|
||||
return err
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue