fix: fixed device index use for BLE module (fixes #994)

This commit is contained in:
evilsocket 2024-08-09 18:00:08 +02:00
commit 76e136a18e
3 changed files with 11 additions and 6 deletions

View file

@ -1,3 +1,4 @@
//go:build !windows
// +build !windows
package ble
@ -166,7 +167,7 @@ func (mod *BLERecon) Configure() (err error) {
golog.SetFlags(0)
golog.SetOutput(dummyWriter{mod})
if mod.gattDevice, err = gatt.NewDevice(defaultBLEClientOptions...); err != nil {
if mod.gattDevice, err = gatt.NewDevice(getClientOptions(mod.deviceId)...); err != nil {
mod.Debug("error while creating new gatt device: %v", err)
return err
}