mirror of
https://github.com/bettercap/bettercap
synced 2025-08-19 04:59:25 -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.SetFlags(0)
|
||||||
golog.SetOutput(dummyWriter{mod})
|
golog.SetOutput(dummyWriter{mod})
|
||||||
|
|
||||||
options := []gatt.Option{
|
if mod.gattDevice, err = gatt.NewDevice(defaultBLEClientOptions...); err != nil {
|
||||||
gatt.LnxMaxConnections(255),
|
|
||||||
gatt.LnxDeviceID(mod.deviceId, true),
|
|
||||||
}
|
|
||||||
|
|
||||||
if mod.gattDevice, err = gatt.NewDevice(options...); err != nil {
|
|
||||||
mod.Debug("error while creating new gatt device: %v", err)
|
mod.Debug("error while creating new gatt device: %v", err)
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue