misc: small fix or general refactoring i did not bother commenting

This commit is contained in:
evilsocket 2019-09-08 16:48:32 +02:00
commit 9dd6145a39
No known key found for this signature in database
GPG key ID: 82E42E7F3B34C97E

View file

@ -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
}