From 9dd6145a397cf77c755c0a42f664151faa206d76 Mon Sep 17 00:00:00 2001 From: evilsocket Date: Sun, 8 Sep 2019 16:48:32 +0200 Subject: [PATCH] misc: small fix or general refactoring i did not bother commenting --- modules/ble/ble_recon.go | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/modules/ble/ble_recon.go b/modules/ble/ble_recon.go index 9c98b5b5..db00ded3 100644 --- a/modules/ble/ble_recon.go +++ b/modules/ble/ble_recon.go @@ -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 }